Sign in to follow this  
BH2114

Alarm Reset slow

Recommended Posts

I think I saw something on this somewhere in the forum, but I cannot find it now,

I have 45 alarms, and I have a test sequence that when run will fire them all.  They all ack properly using the  Alarm.AckAllAlarms() function.

The reset is a different story.  I am using alarmreset=0 as the reset event for all the alarms. This is brought to 1 by a reset button. 

In some cases that button must be held down for 20 seconds to reset a particular alarm. the button uses a quick sequence as follows:

alarmreset=1 (on mouse down checked)

alarmreset=0 (on mouse down not checked)

Is there anything that can be done about this?

 

 

Share this post


Link to post
Share on other sites

For one thing, I think you want:

alarmreset == 0

And I think you have the mouse down check part reversed.  It should be 1 on mouse up, and 0 on mouse down so that alarmreset is 0 only momentarily.  I however, would probably reverse the logic all round and make the reset condition be:

alarmreset == 1

(or just: alarmreset)

and then keep the button the way you have it.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this