Quantcast
Channel: LabVIEW topics
Viewing all 69659 articles
Browse latest View live

Swap shared library

$
0
0

I want to debug the CCC library.  To do this, I have to also simultaneously debug the CVT library and STM library.  All need to have changes applied in order to debug (Disabling re-entrancy and enabling debugging mostly, but also adding debugging controls and indicators).  Altering the installed vi.lib libraries is absolutely not something I want to do for obvious reasons.

 

So, I use the library manager to create copies of all three (STM, CVT, CCC).  When I add them to a new project, CVT adds withough trouble (Since it doesn't depend on CCC or STM).  With CCC though, everything conflicts with the original libraries that come in via vi.lib.  The copied CCC attempts to load the original CVT and STM even though those are manually added to the project at their new locations.

 

What is the proper procedure to disable the loading of vi.lib libraries so that dependent libraries all load vi's from copies of their dependencies?  The conflict resolution process doesn't allow this.

 

Thanks,

 

XL600


Can tabtip.exe be positionned?

$
0
0

Hello, I'm calling tabtip.exe to enter text from a touchscreen, but it always apears over my textbox.

 

Is there a way to programmatically position the virtual keyboard?

 

Thanks.

 

GetDate/ format date time string

$
0
0

Hello everyone,

I needed some help figuring why i can't use %p to denote A.M and P.M on my outut screen. When i run the application i get the time but not the denote am/pm.

I've attached both the image and the VI.

FPGA C Interface - listening for events

analysis of waveform from tdms

$
0
0

Good afternoon everyone,

                  I am trying to do a little post test data analysis.  I am recording a LOT of data, the brunt of the data is from strain gages that can have up to 16 million samples.  I have attached my vi and a pdf of the front excel spreadsheet from my data file for informational purposes.

 

                The intent is to cycle through the data about every 200 samples, get a Min, Max, and Average, and save that data alongside the rest of the data.  Trying to get a quick view of summary of everything and knock down the size of the data file.  Right now it doesn't really appear to be doing anything.

 

                 Any thoughts or ideas will be appreciated.  Thank you.

Inserting XY Graph image to Excel template

$
0
0

Is it possible to insert an apended image from an XY graph into a excel template? If it is possible, I figure that it would be easier to do that instead of inserting data that transforms into a graph given my current setup.

 

Thanks!

 

-I

length of text displayed in string control

$
0
0

I'm trying to roll my own custom scrollbar, since LabVIEW does not have a native way to set colors, transparency, or width of scrollbars. I'm going to try it with a picture control!

 

To set the size of the bar to the percentage of text displayed, I need to know how long the text in a string control is and how much of that is visible in the string control. This is not the same as counting lines (EOLs). What is needed is thelumber of lines displayed taking into account word wrap and text size.

 

I can see that the scrollbar position value of a sting, which is readable even if the scrollbar is not visible, gives the line number of the topmost displayed line in the string, but this does not appear to be enough information for my custom scrollbar.

 

Thoughts?

NI9219 2 wire

$
0
0

Hi,

 I am trying to take thermistor emsurements using the NI9219 in the Automation explorer. As a first step, I am trying measure 1 120 Ohm and a 30 Ohm resistor.

 

 Device:  NI9219 ( with USB-9162 USB carrier)

 wiring:  Pin 3 and 5  

 As an ouput,  I am not getting the resistance value

 

 Settings:

 Channel 2"   120 Ohm resistor

 Max input range:  200 Ohm

 Min input range:  10 Ohms

 Internal current source set to 500 uA 

 

 channel 3:  30 Ohm resistor 

Max input range:  40 Ohm

 Min input range:  5 Ohms

 Internal current source set to 500 uA 

 

 Result:  I am getiing a signal reading which is not in Ohms.

 

 I  am not doing something not correctly. Any ideas where my error is ?

 

 Thanks. 

 


inconsistent results in Extract Curve

$
0
0

Hello.

 

I am trying to write a program that extracts all curves then calculates the radius of selected curve.

The problem is that I get different results when changing the Area Of Interest AOI.

 

Is there anyway I can overcome this problem?

 

Thanks in advance.

Modhi

front panel touchscreen

$
0
0

Hi all!

I'm new to developing complex applciation in labview and i want to ask if a normal front panel can be used by a touchscreen monitor o I need to develop a proper code to achive this funcioton.

I've seen that there's a toolkit for this (Touchscreen Tookit) but i'm not sure hot to use it.

Thanks in adivice!

headless mode

$
0
0

Hi,

 

is it possible to execute a bitfile generated using the NI 802.11 application framework in headless mode? Either using the Python wrapper for the NI FPGA C interface (https://github.com/vpaeder/pynifpga) or directly using the C API. Just loading the bitfile to FPGA seems not to be sufficient. Are there any additional steps required?

 

res = "RIO0" # instrument address (resource name, for example RIO0)
fname = "usrp_x310_fpga_HGS.lvbitx" # Bitfile name
sig = "97C6D9F4F4829001B83378F93CAB0C94"

# loads FPGA drivers
from pynifpga import pynifpga
fpga = pynifpga()

# loads file into the FPGA
fpga.Open(fname, sig, res, 0)

 

PWM wave data Transferred by DMA FIFOs are not ideal

$
0
0

 I am using DMA FIFO for transferring PWM data to Host Target, and the Target host saves the data in c:\DI Log Data. But the saved data is not the original PWM wave data.

Hardware: PXI-7841,PXIe-8133,PXIe-1065

Software: LABVIEW 2013 VERISTAND2013

At the FPGA part, the action of writing into FIFOs works, the Boolean control ‘EnableRecordHighTime’ works at controlling the function writing into the FIFOs or not, so that a host VI (the FPGA bit file used in VeriStand2013) can enable or disable this function. ‘DI41’&’DI42’ control can acquire the PWM wave produced by signal generator, the write FIFO action is executed one time every 1 us.

 1.JPG

And I have developed a Custom Device for VeriStand2013, in the custom device I opened the 7841’s reference, then read the 7841’s DMA FIFO, at last saved the FIFO data in RT Target, in which the path is ftp://10.10.3.30/DI Log Data.

2.JPG 

3.JPG

 

4.JPG

But the saved PWM wave data is not ideal. Such as 10K PWM wave, there should have 50 points ‘0’ and 50 points ‘1’, but sometimes the number of the points is not as ideal as expected, like under piecture.

5.JPG

Could you help me fix this problem? Please advice.

GUI for client server system

$
0
0

I have designed a client server system to cut and copy files from one folder and sent over tcp ip network to another folder. My next step is to design a GUI to control both client and server that does the above. How should I approach that. What are the basic steps. Shouldnt I be creating GUI as a seprate VI and connecting to both client and server. Thanking You. 

Airplane Instruments "Six Pack"

$
0
0

Hi Folks,

 

due to the fact that it's Chrismas now, I think I have a nice present for all of you who are interested in aircrafts. Over the last four years I developed my own “Six-Pack” with the most important instruments which are in a plane. And … if you also use a cheap Multiwii quadrocopter flight control and a GPS connected to my software then all the instruments also will work. I have tested my instruments several times when I flew with my best friend in his Cessna 152. All the instruments are drawn by me using Corel Draw. It took me a lot of time but I think the results are pleasing to the eyes. Now with a heavy heart I have to give up with my project due to some other important business and private projects. It's a great pity but now I want to share all my work with you guys and hope that somebody of you will use it and continue with it. Everything you need is in the attachment. There is also a document with the hardware I used.

 

Feedback about my project and some ideas and results from your further development are always welcome.

 

Best Regards, merry Christmas and a happy new year .... Cheers

 

 

 

Memory Leak by drawing pictures

$
0
0

Hello,

I am experiencing out of memory after a couple of hours when I start my program. In my program I am drawing  a picture part onto a big picture. If I deactivate that vi, memory usage doesn't increase. If I activate it memory usage increases app. ~1MB/s. I am drawing 3 small different pictures on it each second. How can I avoid it? I am posting my code.

 

Thanks.

 

 


Is there a way to detect mouse over event for controls inside a tab control?

$
0
0

I need to change the mouse pointer as it moves over controls which are located in tabs.

Now when the mouse moves over to the tab, LABVIEW does not detect the controls saperately for mouse over event.

Is there a way to do what I intend to do?

read a particular column in excel spreadsheet.

$
0
0

Hey everyone,

I'm trying to copy one csv file to a template. The problem is that im using a read from spreadsheet and copying the content using string. Which is fine. However, certain column just have numbers which is transfered as a text. It isnt too much of a problem but may interfere with some equations i have that will be converting those numbers in the same sheet. Is their a way to read the first column as a string and the other as a double? I believe i can index the array but im a little confused about it.

Signal simulation

$
0
0

Hi all,

I am doing some calculations to measure the area under the curve within differen frequency.

 I try to measure the area under the curve which is a function of tha amount of light bocked by some obstacle.

When there is no  obstacle between light source and detector, the output will be zero, and when the detector is blocked 100 % , the output will be the maximum ( about 3.075).

The first graph show the result when an object of 7mm diameter is moving between detector (4mm diameter)  and light source with 15, 30 and 45 mm/s Consecutivly.

The Second graph shows simulation of the movement of the object in front of the detector.

Based on that, I try to simulate the movement of an object with 1 mm/s infront of the detector and find output using the formula of the intersection area of two circlec ( written in yje block diagram), but the result shows something different, because I expect that the area under curve should be at least 15 times the data from 15 mm/s.

I beleive I have something wrong with my simulation results, try to help me to find that mistake..

Thanks.

Hobby King IOS / Android Wifi 4 channel receiver automated via LabVIEW

$
0
0

In trying to teach students about LabVIEW for FRC robotics (team 3206), I wanted to have them control a device with 4 servos to practice logic and loops with very little overhead.  I have a Hobby King WIFI receiver with 4 channels that functions as an access point and I found a basic code sample to make it work.  With that information, the attached VI that allows it to function from LabVIEW.  Thought someone else might want to use it.  Enjoy.

decompiling a program

$
0
0

I have a client who has been running a compiled LV program. They now would like to make some changes to it but can't seem to locate the original LV code. Is there a way to "decompile" the program back to its original LV source?

 

Thanks,

 

Bob

 

Viewing all 69659 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>