I would like to get a count of all active alarms (both ack and non-ack) in tags in a particular folder called "FAB". I have one alarm that is set to true and it is flashing on the standard alarm table in my HMI so I know the alarming is working.
But the tag path filter seems to be broken or I am using it wrong as it always returns zero alarms unless I make the tagpath filter = "*".
Note, you should never call system.alarm.queryStatus from within a Vision client unless you want performance issues as this is a slow function and all scripts in Vision run in the gui thread so will lock up the interface. You didn't tag your post so not sure what you're using
Thanks for tip. I am hoping to create a global expression tag that contains the alarm count for various machines and areas in a factory. The vision clients only read the tags.
It is safe to call from an asynchronous function, triggered from a client timer event, and writing results to a client tag. Everything else in the Vision client should reference the client tag.