LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help: Stopping conditions while acquiring data on myDAQ

Solved!
Go to solution

Hi,

 

I am reading the signal from a simple sensor using a myDAQ. All I want to do is stop the myDAQ from taking data once it exceeds a value such as when it reads an amplitude of 7 and if it never reads that number then to just continue until a user stops it.  I don't know if this can be accomplished with just a While Loop and a true and false case or if I need an Event Structure. Either way I am lost.

 

Please help!

 

0 Kudos
Message 1 of 3
(2,207 Views)
Solution
Accepted by topic author alexish30

You would not need an event structure. You can stop the loop on any condition you choose, and in this case your condition would be generated from one of the comparison primitives.

 

While Loop Tutorial

0 Kudos
Message 2 of 3
(2,200 Views)

Thank you! I got it working now! 

0 Kudos
Message 3 of 3
(2,142 Views)