LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Hold data?

Hello,

I am using an alarm and I send a " true " or " false" sinal to a boolean to represent the alarm. I am comparing each data in an array to a cerntain thredhsold value and if bigger than thredshold then send the true to the boolean, set alarm on. But the samples in the array are aquired very fast, if the first data is bigger than thredshold, a "true" is sent to the alarm, but the second data is less than the thredshold,then a"false" is sent to the alarm, the alarm is off. But what I need is that if the "true" is sent out to the alarm, hold the "true" and keep the alarm on no matter what the next data is. Is there anyway to hold the data?

Thanks in advance,
0 Kudos
Message 1 of 4
(3,219 Views)
Add a shift register in your the loop initialized to FALSE. At each loop iteration use a boolean OR between the shift register and the current alarm, then feed the output to the shift register and alarm indicator.
0 Kudos
Message 2 of 4
(3,207 Views)
Altenbach has the same solution as I have here. You are just implementing a rising edge trigger, I have attached my "simulator" vi (LV 7.0)
-Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 3 of 4
(3,202 Views)
Thank you very much
0 Kudos
Message 4 of 4
(3,201 Views)