LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

aquiring 1 point while continual aquisition

We are continually aquiring data using our DAQ.  We are interested in Voltage over 2 V.  With the desired rate of collection we are collecting roughly 10 data points durring the time that the voltage is over 2 V before it dips below again.  We are wanting only 1 piece of data to use for each time that Voltage greater than 2 V is achieved. 
 
thanks
0 Kudos
Message 1 of 2
(2,142 Views)
I'm sure there are more elegant solutions, but i would do something along the lines of:
 
low = true
 
loop:
if (input voltage>=2.AND.low)  {record.data.point, low=false}
if (input voltage < 2)  {low=true}
0 Kudos
Message 2 of 2
(2,137 Views)