Crestron SIMPL+ Reference Manual page 85

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Crestron SIMPL+
Events
Language Reference Guide - DOC. 5797G
®
Events Overview
SIMPL+ is an event driven language. There are four functions which deal with
activating events in a given SIMPL+ program; CHANGE, EVENT, PUSH, and
RELEASE.
CHANGE
Name:
CHANGE
Syntax:
CHANGE <variable_name1> [, <variable_name2> ...]
{
[Local Variable Definitions]
<statements>
}
Description:
<variable_name> may be either a DIGITAL_INPUT, ANALOG_INPUT, or
STRING_INPUT type. If it is a DIGITAL_INPUT, the statements between { and }
will be executed when the input transitions from low to high or high to low. If it is an
ANALOG_INPUT or STRING_INPUT, the statements between { and } will be
executed whenever the variable changes. Note that for an ANALOG_INPUT or
STRING_INPUT, the same value re-issued will also cause the CHANGE to activate.
When using ANALOG_INPUT, BUFFER_INPUT, DIGITAL_INPUT, or
STRING_INPUT arrays, only a change in the entire array can be detected, not an
individual element. Refer to "GetLastModifiedArrayIndex" on
which element actually changed. Use IsSignalDefined to ensure that you send data
only to outputs that exist or take input from signals that exist.
When listing multiple variable names, the names can be put on the same line or
broken up into several CHANGE statements for readability.
Refer to "Stacked Events" on
page
80.
Software
page 93
to determine
®
SIMPL+
75

Advertisement

Table of Contents
loading

Table of Contents