LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to set alarm

in my project iam measuring temperature,if the value goes above or below certain values alarm is indicated in a file.But this alarm should be shown in a file ,if the alarm set and clear occure more than 3 times in 5 seconds .If the alarm set or clear is less than 3 times in 5 seconds it is not treated as alarm.please help me how to do this.
0 Kudos
Message 1 of 5
(3,214 Views)
Hi,

You can keep track of the number of alarms by using a shift register adding 1 everytime the alarm goes off. By using the tick count you can monitor the seconds elapsed.

I have created an example that shows how this could be done. Press the Alarm? boolean botton 3 times within 5 seconds and the program stops and generate an alarm. Otherwise the program just stops executing after 5 secs

Let me know if this doesnt solve you problem.

Regards

A Meister
NIDK
0 Kudos
Message 2 of 5
(3,209 Views)
Thank u very much for ur reply.But i want to store these alarms in a log file.here iam attaching an example VI,in this vi alarm set r alarm clear always logs in to file whenever alarm is set r clear.But i want to modify this vi so that alarm set and clear will be log in to file after morethan 3 alarm set or claers occur.as iam starter please let me know how to do.

once agin thank u for ur reply
0 Kudos
Message 3 of 5
(3,205 Views)
See attached vi. A shift register holds a count of how many times the alarm has triggered. When 3 or more, the file write is executed. I also cleaned up the wiring to make it easier to read.
- tbob

Inventor of the WORM Global
Message 4 of 5
(3,194 Views)
Thank u very much,it helped me lot
0 Kudos
Message 5 of 5
(3,179 Views)