Search found 6 matches

by Ivan Videsvall
Thu Dec 03, 2020 3:59 am
Forum: Scripting
Topic: Can't read AlarmServer database table in panel, works in Simulator
Replies: 1
Views: 6797

Re: Alarm database read on AlarmChange event is not up-to-date

Instead of triggering on AlarmChange I made a workaround that reads the database periodically after an initial delay on panel startup to allow for the system to stabilize. This is done by using a timer that sets a ready tag. This tag is then checked by the system tag SystemTagSecond event handler. S...
by Ivan Videsvall
Tue Dec 01, 2020 10:15 am
Forum: Scripting
Topic: Alarm time
Replies: 1
Views: 6087

Re: Alarm time

I was unable to find the datetime in an object property/field but found it in the database.
by Ivan Videsvall
Tue Dec 01, 2020 10:12 am
Forum: Scripting
Topic: Can't read AlarmServer database table in panel, works in Simulator
Replies: 1
Views: 6797

Can't read AlarmServer database table in panel, works in Simulator

edit : This problem progressed to the inability to read the AlarmServer table. See the post below this one for up to date details. I wish to get an up-to-date list of active alarms (and datetimes) after the AlarmChange event has been triggered. If the database is read in the AlarmChange event handl...
by Ivan Videsvall
Tue Nov 24, 2020 10:32 am
Forum: Scripting
Topic: Alarm time
Replies: 1
Views: 6087

Alarm time

How does one access an alarm's time property by scripting? I can access the alarm text using the property IAlarmItem.Text.

I tried using the IAlarmItem.ItemEnabledTime property but it returns null.
by Ivan Videsvall
Thu Aug 20, 2020 10:07 am
Forum: Scripting
Topic: Identify button when clicked
Replies: 2
Views: 8586

Re: Identify button when clicked

Option 2.2 seems to me the most appealing and is closest to what I had in mind. As you suggested an event can be hooked to an existing event handler.

Thanks!
by Ivan Videsvall
Tue Aug 18, 2020 7:09 am
Forum: Scripting
Topic: Identify button when clicked
Replies: 2
Views: 8586

Identify button when clicked

On a screen we have many buttons of the same kind. A click on any of these buttons should change a value, preferably in an a corresponding INT array. Is there a way to identify which button was clicked?