Sending out an email if the pressure is higher than 80 for 10 mins


Gorkhali

Recommended Posts

Posted

OK, this is the line that checks the condition:

if ((Pressure[0] > 80) && (Pressure[1] <= 80))

To check for it to be over 80 for over 10 minutes you'd do instead:

if ((Pressure[systime(), systime() - 600] > 80))

The problem is not sending emails over and over again so you'd have to add some logic to prevent that.  It could be to repeated send every so often if the alarm state is maintained, or to only set if reset.  This is actually what the Alarming feature of DAQFactory makes easy.

Archived

This topic is now archived and is closed to further replies.