LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass input from DAQ assistant inside a loop to make it stop

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

0 Kudos
Message 1 of 6
(2,748 Views)

Share you code...!!
that will help us to help you better..!!


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 2 of 6
(2,741 Views)

Sorry! There's the code.. The 2nd analog input is the problem.. 

0 Kudos
Message 3 of 6
(2,736 Views)

 

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)...

 

 

 


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 4 of 6
(2,729 Views)

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.....

- tbob

Inventor of the WORM Global
0 Kudos
Message 5 of 6
(2,700 Views)

Chrome works.  Microsoft is crap.

- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 6
(2,694 Views)