05-31-2013 03:29 AM
Hello,
I'm a beginner in Labview.
I am connecting an electronic circuit through BNC 2120 to Labview. I have 2 analog inputs. When The 1st one is > 2.5 V, we launch a timer using a while loop. And when the 2nd signal becomes > 2.5 V, the timer should stop.
The problem is: when the loop starts working, it doesn't take any other input from outside. So it's a continuous loop. Also, I am using the DAQ assistant to read the input. Labview obliges me to put the 2 inputs in 1 DAQ assistant, so I cannot place a DAQ assistant outside and inside the loop.
PLEASE help!! It's urgent.
Thank you all
05-31-2013 03:51 AM
Share you code...!!
that will help us to help you better..!!
05-31-2013 04:03 AM
Sorry! There's the code.. The 2nd analog input is the problem..
05-31-2013 04:21 AM
You need to keep the DAQ assistant inside the loop, in order to keep getting the voltage values from DAQ, while the loop is running...!!
Because once any loop starts executing it doesn't accepts values from outside (unless you use one of the methods explained here)...
05-31-2013 10:02 AM - edited 05-31-2013 10:05 AM
See attached vi. There is a better way to get hours, minutes, seconds that having to do all that math. Also see my note on comparing a floating point using an equal sign. Lastly, put a second DAC Assistant inside the loop to look for when to stop.
Salut.
EDIT: I can't get Internet Explorer to attach a file. I will try again using Google Chrome. Standby.....
05-31-2013 10:09 AM
Chrome works. Microsoft is crap.