LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Logic variable that that only changes value once

I need a logic variable that is initially false to change to true when
a certain event happens (e.g., temperature reaches a threshold) and to
remain true even when the output of the comparison changes back to
false. Is there a simple way to do this without using shift registers
in a while loop?

Thanks. Kevin
0 Kudos
Message 1 of 2
(2,524 Views)
I am not sure why you want to use Shift Registers.

Look at the answer to your other post. By using the Local Variable that is set only when a certain condition is met, it will remain that way if you do not change back to the default value in the Case Structure.

Basically, set the Local Variable of the boolean to true if the condition is met (so only in the true block do you have the local variable getting a value). If it is not met, do nothing to the local variable and nothing to the boolean. The boolean simply represents the value set to your Local Variable.

Hope this makes sense to you.

JLV
Message 2 of 2
(2,524 Views)