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

No value from case

$
0
0

Hi,

 

I have problem.

 

I wrote a program which generate numbers and then write to file.

If case condition is fullfiled the value need to write. In other case the program need to go to the nextloop and do nothing.

What can i change in program to solve it?

 

Regads

dsa.pngdsa.png


Error Code -200220 When Running a Data Acquisition Program?

$
0
0

I have a remote PXI system. Please see the picture in the attachment file of Max configuration.

I tried to run this example: Voltage-Continuous Input. vi

But I recieved this error message:

Error -200220 occurred at DAQmx Create Channel (AI-Voltage-Basic).vi:1780001

Possible reason(s):

Device identifier is invalid.

Device Specified: PXI1Slot6

Task Name: _unnamedTask<7>

The Test Panel for PXI -6123 it ok, it works, so what is my problem.

Is something missing in MAX configuration?

Someone could help me?

Thnaks in advance.

Celia

Data with chart and cursor.

$
0
0

I have 5 data which I need to continously acquire and display. Also user can go back and check the datas i.e. cursor. 

 

I am able to show all data using chart with (Stack plot) but cursor I am not able to add cursor as it is not supported. Attached image.

 

Any other suggestion?  I am using LV2011

 

Untitled.png 

lookup "map" for P&ID

$
0
0

Dear fellow programmers,

 

I seek advice how to handle the following scenario using LabVIEW.

We have a large glove-box system with several hundreds of hand valves, vacuum pumps, automatic valves, pressure/temperature/moisture sensors, flow meters and controllers, etc... So there are about several thousands of objects in this system. We use a distributed control system from Siemens with high safety requirements (radioactive gas handling). We access to the system using a Siemens software called Simatec PCS 7 via a multimonitor terminal.

I am not allowed to change anything on these terminal PCs, neither install LabVIEW or own applications on them.

 

The problem is the quite limited search function in this PCS software, therefore I am planning to develop a LabVIEW application to be used on a separate laptop to help new staff and students finding exact locations of handvalves, etc in these large glove-boxes. This application would have a search field, where the user can type for example a keyword like "HV487", and the application would then show the object's location on the piping diagram ("P&ID"), and also would give information to the user where to find it in the real physical glove-box (like "glove-box block A, lower quarter north side", etc...).

I can export the screenshots from the Siemens system, and save them as images or pdf files. The P&ID size is about ~50-100 monitor screens. When the user searches for an object, the application should show the corresponding screenshot with the highlighted location in it.

 

I wonder what is the common procedure to program such application? I guess I should create a kind of lookup table, with a full list of the valves, etc, and containing the reference of the image file, plus the XY pixel position of the object in the image? It would be nice also to program a LV app i think to assist the creation of such lookup table, like clicking on the image, and typing the name of the object...?

Thanks for any further idea and advice!

Best Regards,

Inserting commands in to system exec vi

$
0
0

Hi, 

 

I want to insert multiple commands in  the same cmd window. I use system exec vi but  i don't manage to get it work.

So, I have 10 command to be inserted in my cmd windows and for first I insert  5 command and after I receive a  trrigger from an external device (It could be last 5 or 10 seconds or more),  the remained  commands need to be inserted in the  same cmd window.

Attached you will find  how I aborded  the problem so far, maybe somebody can help me.

 

Regards,
Vlad

 

 

FPGA: Compile Worker application clutters up the root folder /

$
0
0

Hi, 

I am seeing a lot of clutter in the / folder of my compile worker linux machine.  It seems that all of the *_stub.v files that are generated during the xilinx compiles are stored in the / folder of the drive.  This is not a real performance issue, but it is very messy and I would like to know what setting to change in order to get these files to go into a different folder.  Here is an example.

[root@FPGA01 /]# pwd
/

[root@FPGA01 /]# ls

BuiltinFIFOCoreFPGAwFIFOn20_stub.v
BuiltinFIFOCoreFPGAwFIFOn2_stub.v
BuiltinFIFOCoreFPGAwFIFOn3_stub.v
BuiltinFIFOCoreFPGAwFIFOn4_stub.v
BuiltinFIFOCoreFPGAwFIFOn5_stub.v

DualPortRamCoreFPGAwMemoryn90_stub.v
DualPortRamCoreFPGAwMemoryn91_stub.v
DualPortRamCoreFPGAwMemoryn92_stub.v
DualPortRamCoreFPGAwMemoryn93_stub.v
DualPortRamCoreFPGAwMemoryn94_stub.v
DualPortRamCoreFPGAwMemoryn95_stub.v
DualPortRamCoreFPGAwMemoryn96_stub.v
DualPortRamCoreFPGAwMemoryn98_stub.v

formula node bug?

$
0
0

Hello,

 

   I can't figure out what I'm doing wrong with the formula node.  I tried this on both LabView 2011 and Labview 2013 version and got the same results.  Basically I want to past any numbers with a decimal to the formula node.  If the number is more negative than -1 then set the value to -1 and if the number is more positive than 1 then set the number to +1.  Anything else just return the input to the output.  

 

formula node.png

 

 

This arithmetic works correctly when I use the LabView discrete "Select" function.  In the formula node I have this code:

 

if(Xin < -1.0)
   Xout = -1;
else
   Xout = Xin;

if(Xin > 1.0)
   Xout = 1;
else
   Xout = Xin;

Where Xin is the input node and Xout is the output node. It works well for anything over +1.  If you pass 1.5, you get 1.  If you pass 0.5 you get 0.5.  It even works for negative number greater than -1.  So passing -0.5 you get -0.5 etc.   The problem shows up when passing anything more negative than -1.  If I pass -1.5, I get -1.5 as the answer.  The Labview discrete select function method gives me the correct answer as -1 when passing -1.5.

 

formula node front panel.png

 

I even tried to make sure that the input is casted to float just in case it got mixed up as an integer.  But the results are the same.  So either I don't understand the formula node syntax or there's something else going on.

 

float32 X =  Xin;
if(X < -1.0)
   Xout = -1;
else
   Xout = Xin;

if(X > 1.0)
   Xout = 1;
else
   Xout = Xin;

data lost

$
0
0

Dear all,

 

I generate a sine (25kHz,1V, 1MS/s) with one device and measured/recorded synchronously it with another device (2MS/s, double sampling rate) (Master Time Base comes from the output and triggers the recording). Now I looked at the recorded data with Matlab. I have several different measurements where the sinus is measured till sample number 65.283 , 65.392 , 66.228 instead to sample 80k. The time base for sampling seems to be true. Doas anyone have an explanation?


Phase correction - measuring voltage - two channels using NI-USB 6211

$
0
0

Hello, I have problem with phase difference caused by interchannel delay. I am measuring voltage by two channels using NI-USB 6211 (in attachment) and because it has multiplexed inputs I have problems with phase difference between two channels. I heard that somehow (by some LabView function) I can solve this problem very easily. Can you tell me how?

 

Thanks a lot

Dalibor

GOOGLE MAPS ROUTE

$
0
0

Hello everyone,

 

I have found and used this Vis cointaining google maps application, that allows you to indicate different locations and give a Google Maps window indicating them.

Now. I'm not really familiar with this specific application.

I would like, indicating  2 locations, to have also the driving route between them. Is this possible?

If the 2 locations are saperated by ocean It's OK to have just a Line connecting the 2 points.

 

Would you be so kind to help me?

 

I attach the ZIP with the VI,

Thanks a lot

 

why does a while loop not start in a flat sequence if I have another while loop running in a different flat sequence?

$
0
0

Hi all,

Basically I am controlling many devices sequentially and for that pourpose I have created a flat sequence to do so. Also, in certain moments I have to start the measurements with the potentiostat I am using which also follows a sequence and I created a second flat sequence to do so. In a part of my experiment I want to monitor the voltage and current of a high voltage power supply which is in the main flat sequence and also read the results I am obtaining with the potentiostat  simultaniously. 

 

In the main sequence there is a bollean constant that triggers the beggining of the secondary sequence. In the frame after such boolean contant I have a while loop in which I read 2 analog inputs of the high voltage power supply with my USB-6218 for a certain time every 100 ms. My problem is that the boolean constant effectively starts the secondary flat sequence but when it reaches a while loop in which I keep reading the results of the potentiostat, for any reason that operation does not start until the while loop placed in the main loop is not finished. 

 

I comunicate with the sotware of the potentiostat through a driver made by the manufacturer. 

 

Is it possible to read analog input with USB DAQ and simultaniously read the results of the potentiostat?

 

Thank you very much

Single tone extraction and Multi tone extraction

$
0
0

Hello, 

I have a big problem with single tone extraction and how i can use the multitone extraction.

i have attached the front and block panel of my model in order to help you more.

I have built the theory of my experiment on labview with which i have a cavity length of my sensor 75um which creates a sinusoidal signal. this signal i do resampling and interpolation on it and then i apply the single tone extraction to get the attributes. then i build a sinusoidal and i coplot the two signals.

My problem is that when i introduce a second cavity, signal with similar length, the multitone extraction gives me back two different frequencies , which if i use them to create two signlas they are way different from my initial ones. 

In brief, i create a signal with two cavbities 75um and 80 um, i apply the single tone and i get two frequencies which when i turn them to cavity length i have 70um and 0.5um respectively.

how can i make the multitone extraction detect frequencies which are very close to each other?

Thanks a lot in advance

 

Kind Regards

Dimitris

Slow serial com/Cant do serial write and read at the same time

$
0
0

Hi,

 

I am just trying to do a basic serial communication between arduino and labview, but I am having trouble doing serial read and write at the same time.

 

On my arduino side of code, I am just doing a very basic Serial.println and just sending values for a counter/timer. So currently my problem is, I have a control for the write buffer, if I left the write buffer empty, I can read normally. However, as soon as I start writing something into the write buffer, I cant read anything. I have tried putting read and write in sequence (both read and then write, and write and then read), but I get a at least 1 second delay in the while loop. I have also tried flushing the receive buffer after a read. 

 

I have tried a lot of examples found online, including the examples come with labview, I either get a massive delay (>1 seconds) or cant receive or write probably.

 

Please find attached my labview vi. Any help would be appreciated!! Thanks Smiley Happy

VISA Resource Help

$
0
0

So I'm relatively new to Serial and am trying to communicate between a TI MSP430 Launch Pad and LabView to send serial commands back and forth. I have the pilot program running on the Launch Pad and am sending commands to be recieved and cause an LED to blink on the launchpad. I am checking what is being input to the Serial Write command but when I communicate with the device I always get the same thing, which is nothing happening... And then in the VISA resource this little extra symbol shows up. It's almost as if the port recieves the command but doens't execute it and gets hung up. After this point I have to basically uninstall the USB driver or restart my computer to get those little yellow bubbles to go away. Any help is much appreciated, I'll attach the VI I'm using.

 

SerialComm.png

Multiple copies of lvanlys.dll is causing build problems.

$
0
0

My project is using multiple copies of lvanlys.dll.   This is causing build conflicts.  Does any know the solution to this?


Manually Control Oscilloscope Settings

$
0
0

I am attempting to go from 30kHz-100kHz in steps of 1kHz on my signal generator and then measure the resulting waveforms from 2 devices on the oscilloscope. 

Because the waveforms always look different, I need to be able to manually control the timebase, time delay and the voltage range before I can capture the waveforms. 

I have been able to configure the signal generator, however, when I got to configure the Oscilloscope, it seems to freeze up because of the while loop. However, I do not know how to configure the oscillscope manually without the while loop. Any suggestions?

(When the loop conditions for the Oscilloscope are true, both the configure channel and timebase vi's are ignored)

Coverto Vi from 15 to 13

$
0
0

Hello,

please convert the vi in attached from versione labview 2015 to labview 2013?

 

Thank you

Gennaro

Find Systems VI keeps showing cached devices

$
0
0

Hi,

 

I've been building an application which searches for some compactRIO devices in my network and communicates with them. To find all devices in my network I'm using the "Find Systems" VI. At first the VI worked perfectly. It even detected when a device was unplugged from the network (exactly what I want). Since this week the "Find Systems" VI started showing the devices which are offline but cached by labview even when the "Include Cached Results" was set to "none" or "only if online".

 

Find Devices.png

This is the test VI which I'm using to recreate the problem.

 

I'm using labview 2015.

 

I hope someone can help me and explain why this VI keeps showing the cached devices.

 

Thanks in advance!

d

$
0
0

Hello please what s this error in labview?

 

-1073807330

Continuously update formula node

$
0
0

Hello,

 

I have created a formula node, and one of the variables is connected to a DAQ assistant by means of a 'from DDT' which converts the dynamic data to the latest value. However, I want my formula node to continuously update the output if the input from the DAQ assistant changes. Right now it only takes the value from the moment I press 'run'. How do I get my formula node to do that?

Viewing all 69413 articles
Browse latest View live


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