Crestron SIMPL+ Reference Manual page 232

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

Advertisement

Software
®
222
SIMPL+
Example:
BUFFER_INPUT COM$[100];
DIGITAL_INPUT trig;
STRING IN$[100];
CHANGE COM$
{
IN$ = GATHER("\n", COM$);
PRINT("The value of IN$ is %s\n", IN$);
}
In the 2-Series Control System processors, a GATHER that is waiting for data will
use up the next change of the BUFFER_INPUT until the terminating character is
encountered. That is, any CHANGE event handler for the BUFFER_INPUT will not
be called.
If, in the first event, COM$ contains the string "Hello", the event will wait in the
GATHER. When the COM$ changes again to contain "World!\n", the event will
immediately resume after the GATHER. The CHANGE COM$ event will only be
called once in this case. In the X-Generation Control Systems, the CHANGE event
would be called both times.
Version:
SIMPL+ Version 2.00
Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

Advertisement

Table of Contents
loading

Table of Contents