Contents
Partner Programs
Sepasoft - MES Modules
Cirrus Link - MQTT Modules
Resources
Knowledge Base Articles
Inductive University
Forum
IA Support
SDK Documentation
All Manual Versions
Ignition 8.0
Ignition 7.9
Ignition 7.8
Ignition version 7.6 introduced a new alarming system. All of the associated functions can be found under the system.alarm section.
Acknowledges an alert, as specified by a system, path, and stateName. When run in a Client script, the currently logged-in user will be recorded as having acknowledged the alert. When run in a Gateway script, you must provide a username that will be recorded with the acknowledgement, since no user actually acknowledged the alert.
system.alert.acknowledgeAlert(system, path, stateName)
String system - The originating system for the alert being acknowledged.
String path - The path to the alert being acknowledged.
String stateName - The alert state name to acknowledge.
Nothing
Client
system.alert.acknowledgeAlert(system, path, stateName, user)
String system - The originating system for the alert being acknowledged.
String path - The path to the alert being acknowledged.
String stateName - The alert state name to acknowledge.
String user - A username to use for who acknowledged this alert. Only available in the Gateway-scoped version of this function.
Nothing
Gateway
#This example shows the basic syntax for acknowledging an alert. system.alert.acknowledgeAlert("SQLTags.default", "[default]Alm_ESTOP", "ALM_STOP")
#This code snippet could be used as a mouseReleased event handler on a #Table component whose data was the return value of the system.alert.queryAlertStatus function. #It would present a right-click menu to acknowledge the currently selected alert. row = event.source.selectedRow if row != -1: data = event.source.data alertSys = data.getValueAt(row,"System") alertPath = data.getValueAt(row,"Path") alertState = data.getValueAt(row,"State Name") def ack(event, aSys=alertSys, aPath=alertPath, aState=alertState): import system system.alert.acknowledgeAlert(aSys,aPath,aState) menu = system.gui.createPopupMenu({"Acknowledge":ack}) menu.show(event)