Release - Crestron SIMPL+ Reference Manual

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

Advertisement

Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

Release

Name:
RELEASE
Syntax:
RELEASE <variable_name1> [, <variable_name2> ...]
{
[Local Variable Definitions]
<statements>
}
Description:
<variable_name> is a DIGITAL_INPUT type. On the trailing edge of
<variable_name>, the statements between the opening { and closing } are executed.
When using DIGITAL_INPUT arrays, only a change in the entire array can be
detected, not an individual element. Refer to "GetLastModifiedArrayIndex" on
page 93
for a method of detecting a change to an individual element.
When listing multiple variable names, the names can be put on the same line or
broken up into several RELEASE statements for readability. Refer to "Stacked
Events" on
page
80.
Example:
DIGITAL_INPUT trigger;
STRING_OUTPUT output$;
RELEASE trigger
{
output$ = "Hello, World!";
}
In this example, when the DIGITAL_INPUT trigger transitions from high to low, the
STRING_OUTPUT output$ will have the string "Hello, World!" put into it.
Version:
SIMPL+ Version 3.00 - local variables are allowed within RELEASE statements.
SIMPL+ Version 2.00 for DIGITAL_INPUT arrays as <variable_name>.
SIMPL+ Version 1.00 for everything else.
Software
®
SIMPL+
79

Advertisement

Table of Contents
loading

Table of Contents