Procedure.AddNewAlarming Method (String, String, AlarmPriority, AlarmState, BaseNode, Double, BaseNode, BaseNode, BaseNode, BaseNode)
- Updated2023-02-21
- 3 minute(s) read
Adds a new Alarming step and applies the specified settings to the Alarm. This method uses channel values to specify the upper and lower limits of the alarm.
Namespace:
NationalInstruments.VeriStand.SystemDefinitionAPIAssembly: NationalInstruments.VeriStand.SystemDefinitionAPI (in NationalInstruments.VeriStand.SystemDefinitionAPI.dll) Version: 2013.0.0.0 (2013.0.0.0)
| Visual Basic (Declaration) |
|---|
Public Function AddNewAlarming ( _ Name As String, _ Description As String, _ Priority As AlarmPriority, _ DefaultState As AlarmState, _ Alarm As BaseNode, _ Delay As Double, _ Procedure As BaseNode, _ AlarmChannel As BaseNode, _ UpperLimit As BaseNode, _ LowerLimit As BaseNode _ ) As Boolean |
| C# |
|---|
public bool AddNewAlarming( string Name, string Description, AlarmPriority Priority, AlarmState DefaultState, BaseNode Alarm, double Delay, BaseNode Procedure, BaseNode AlarmChannel, BaseNode UpperLimit, BaseNode LowerLimit ) |
| Visual C++ |
|---|
public: bool AddNewAlarming( String^ Name, String^ Description, AlarmPriority Priority, AlarmState DefaultState, BaseNode^ Alarm, double Delay, BaseNode^ Procedure, BaseNode^ AlarmChannel, BaseNode^ UpperLimit, BaseNode^ LowerLimit ) |
Parameters
- Name
- Type: System.String
The name of the step.
- Description
- Type: System.String
The description of the step.
- Priority
- Type: NationalInstruments.VeriStand.SystemDefinitionAPI.AlarmPriority
The priority level of the alarm.
- DefaultState
- Type: NationalInstruments.VeriStand.SystemDefinitionAPI.AlarmState
The default state of the alarm.
- Alarm
- Type: NationalInstruments.VeriStand.SystemDefinitionAPI.BaseNode
The alarm to apply settings to.
- Delay
- Type: System.Double
The amount of time to wait before triggering the alarm.
- Procedure
- Type: NationalInstruments.VeriStand.SystemDefinitionAPI.BaseNode
The procedure to initiate when the alarm occurs.
- AlarmChannel
- Type: NationalInstruments.VeriStand.SystemDefinitionAPI.BaseNode
The channel to monitor for alarm conditions.
- UpperLimit
- Type: NationalInstruments.VeriStand.SystemDefinitionAPI.BaseNode
The channel that determines the high limit value of the alarm. If the value of AlarmSource exceeds this limit, the alarm is triggered.
- LowerLimit
- Type: NationalInstruments.VeriStand.SystemDefinitionAPI.BaseNode
The channel that determines the low limit value of the alarm. If the value of AlarmSource falls below this limit, the alarm is triggered.