Hello guys. I am trying to make a label that counts all alarms except of "Low" priority alarms. I was trying to do it by make changes on Ignition startup alarm label but (picture) i cant understand how "len(system.alarm.queryStatus" works. Any ideas?
Be careful running queryStatus in a client in particular in vision, as it's a slow operation that requires an interaction with the gateway. All events like script calls in vision run in the edt (event dispatch thread) and will lock up the gui if you have long running scripts being called in it, such as this. One call might be ok, but several will cause noticeable and frustrating lag, regardless of hardware specs.
The alternative unfortunately at this time (wait for 8.3 for a fix) is slightly complex if you want to summarise alarms at different folder levels. However i believe @jlandwerlen released a solution on the ia exchange you can use which is tag based and does not run on the client