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?



Link to comment
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.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.