How to get Panel Builder 600 Alarms data by script?
In an application on a Panel Builder 600 the Active Alarms Widget or the Alarm History Widget cannot be graphically customize, like other objects (labels).
I want to display the alarms information in a table I can customize as I need. I can achive this by using several label widgets and arragin the data as I need.
For this i need to somehow get the Alarms data (Alarms triggered, Alarm name, Ack, severity) with a Script from invisible widgets (Active Alarms table, Alarms History) or from the Project Alarm Object to then treat the data and place it where i want.
The documentation of the Panel Builder states that with the Project object in the scripts, its possible to access the data of the Alarms, but it doesn' show how.
Also, its possible to access by script the Active Alarms widget, but i don't know how to get the data from the table cells. Its not documented anywhere.
Voted best answer
Can you check this below script....for this you have to assign all your alarm tags into one group in TAGS WINDOW..
getTags
object getTags()
Returns the list of all tags in group.
Return value
An array of all tags in the group.
var group = new Group();
project.getGroup("enginesettings", group);
var tagList = group.getTags();
for(var i = 0; i < tagList.length; i++){
var tagName = tagList[i];
//do something…
}
Or else have you checked Alarm widget property as given below
Add new comment