Types of Actions
Variable
A Variable Action allows you to change the value of a Variable (see Variables, page
) once an Event is
triggered. Options that must be defined for the Variable Action are the Output Variable and the Output
Value.
The “Output Value” may be set to a constant, such as
Hello
or
5
, or an expression, such as
1
. If the “(expression)” check box is UNCHECKED, the value will be interpreted as a
constant of the same type as the Variable.
If the “(expression)” check box is CHECKED, the “Output to” Variable will be assigned the value
calculated for the expression in the “Output Value” text box. The Variable’s type is not changed by the
assignment. Prior to assigning the result of the expression to the Variable, the result is converted to the
Variable’s type, e.g. a number. The interpretation and calculation of expressions are detailed in the
Expressions section.
Serial
A Serial Action allows you to send a string to a specified port. If the “(expression)” check box is
UNCHECKED, the value in the “Output Value” text box will be sent as a string to the specified port.
If the “(expression)” check box is CHECKED, the expression in the “Output Value” text box will first be
interpreted as described in the Expressions section and the resulting string value will then be sent to the
specified port. If the result of the expression is a number, then it will be converted to a string prior to
being sent out the serial port.