I would like to use a variable that counts the number of active alarms.
GetContainerNumActive
(Alarm Manager module)
Description: Returns the number of active alarms within a hierarchy of
tags.
Returns: Numeric
Usage: Script or steady state.
Function Groups: Alarm Manager
Related to: Accumulate | GetContainerNumUnacked
Format: GetContainerNumUnacked(ContainerObj);
Parameters:
ContainerObj
Required. The container tag to query.
Comments: The alarm count is accumulated by the hierarchical accumulator
module. Alarm tags and tags with built in alarms
are designed to contribute to this accumulator automatically.
If you have written a custom tag with a built-in
alarm, you must ensure that it contributes its active alarms
to the count.
Example:
TotalNumUnacked = Code\AlarmManager\GetContainerNumActive(MyTagName);
This looks like the right function to use, but which tag is MyTagName ? I cant figure out the variable to put here.
Is it the "System Alarm DB"?
I would like to use a variable that counts the number of active alarms.
````
GetContainerNumActive
(Alarm Manager module)
Description: Returns the number of active alarms within a hierarchy of
tags.
Returns: Numeric
Usage: Script or steady state.
Function Groups: Alarm Manager
Related to: Accumulate | GetContainerNumUnacked
Format: GetContainerNumUnacked(ContainerObj);
Parameters:
ContainerObj
Required. The container tag to query.
Comments: The alarm count is accumulated by the hierarchical accumulator
module. Alarm tags and tags with built in alarms
are designed to contribute to this accumulator automatically.
If you have written a custom tag with a built-in
alarm, you must ensure that it contributes its active alarms
to the count.
Example:
TotalNumUnacked = Code\AlarmManager\GetContainerNumActive(MyTagName);
````
This looks like the right function to use, but which tag is **MyTagName** ? I cant figure out the variable to put here.
Is it the "System Alarm DB"?