Change a status point
- Last UpdatedApr 24, 2025
- 1 minute read
The following example illustrates how to change a status value based on two inputs.
The first input is meant to be an analog value that is varying. The second input is meant to be some deadband value for setting the status point. The GetStatusByName is needed here so that the status string value can be mapped to a numeric status value that the Application Calculation Engine (ACE) understands.
' Close an object based on input.
If (input1 > input2)
output = GetStatusByName(args(1).KeyName,"CLOSE")
End If