Hi,
For every Read, are you acquiring a single point, an array of N points, or a waveform of N points?
If you are acquiring a single point for every Read, you can write the point to an indicator in the main loop. Then in a parallel while loop (with a 1ms delay) you can compare the value of the indicator using a local variable.
If you are acquiring an array of N points for every Read, you can write the array to an indicator in the main loop. Then in a parallel while loop (with a 1ms delay) you can compare the maximum value (using Array Max & Min) of the array indicator using a local variable.
If you are acquiring a waveform of N points for every Read, you can write the waveform to an indicator in the main loop. Then in a parallel while loop (with a 1m
s delay) you can compare the values of the waveform indicator using a local variable and the Waveform Scalar Limit Comparison.vi. For more information on the Waveform Scalar Limit Comparison.vi refer to it's context help.
I hope this helps!
Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments