Perspective 8.3 show latest alarms

Hi,

On my SCADA I have a got a docked view on the top with the View name, time etc. I would like to have a table there (on the dock view) that will show only 3 or 4 latest alarms. For now I have put the Alarms Status Table but it is scrollable (I just want to have there 3 or 4 latest alarms).

Thank You

Hi i have the same and i use the system.alarm.queryStatus or journal (Depends on what you need Realtime or historical). And i use a table object to create a look alike status table.

Another way is to use queries direct on the database table and do the merge of all data by yourself.

Hope this helps.

Thank You for reply.

How exactly do You extract the alarm name/label from the queryStatus function result? I have some issues with using getLabel() (I cant use it in the script).

On each item in the list of alarms returned, call .get("assocatedDataLabel", None)
Where the associatedDataLabel is the name of your associated data.

Heed the warning of the queryStatus function in the user manual though

As in you can't physically type it, your boss won't let you, or...?
Show us your code