Custom property change using filterAlarm function

Hi there,

I’m trying to change the state of a custom property (activeAlarm) attached to an alarm status table. The filter section of the code works, but I’m not sure of the right scripting commands to tell the system to switch the Boolean state of my custom property attached to the table.

Here is the code I am using:

I’m just beginning with Ignition and Python, so please forgive such a newbie question.


In extension functions there is no event object, so instead of using

``event.source.activeAlarm = 1


``self.activeAlarm = 1

Excellent! I had to also move the “self.activeAlarm” command to above the “return = True” line to get it to work - but that fixed it!

Thanks so much, appreciate the help.