How do I allow an alarm to be set based on a comparison but then NOT aloow the alarm to clear until a button is pressed?

I have a program that compares DAQ values to a threshold value. If the value surpasses the threshold, an led blinks. The problem is, if the value then goes back below threshold the blinking will stop, as a result of the comparison being False. What I want is to allow the alarm to begin the blinking but not allow it to stop until I press another button, essentially clearing the alarms. I am just flabbergasted at how to accomplish this. Any ideas?

Attached is an example of what I described.
If you turn the dial past 5 the LED will turn ON.
If you turn the dial down (even to 0) the LED will remain ON until you reset the alarm (RESET button).
If you press RESET while the alarm is active, it will only turn OFF the LED when the value is below 5.
You can stop the vi by pressing STOP.
Hope this is what you were looking for..
enjoy..
JLV
Attachments:
Alarm_Example.vi ‏28 KB

Similar Messages

Maybe you are looking for