Redirect_String; Release; Release_Channel; Release_Devchan - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

Reserved Identifiers
Keywords & Run-Time Library Functions (Cont.)
REBUILD_EVENT() (Cont.)

REDIRECT_STRING

RELEASE

RELEASE_CHANNEL

RELEASE_DEVCHAN

RELEASE_DEVICE

146
{
SET_LENGTH_ARRAY(nBtns,4000)
REBUILD_EVENT()
}
BUTTON_EVENT[dvTP,nBtns]
{
PUSH:
{
// ...
}
}
// end
This keyword is used to pass all strings from device 1 to device 2 and all
strings from device 2 to device 1. This is called a redirection and you can
assign up to eight at one time.
REDIRECT_STRING (Number, DEV1, DEV2)
The parameter Number identifies the particular redirection (1-8). To cancel a
redirection, pass zero for Device1 and Device2.
Note: Redirections are lost if system power is turned off.
This keyword declares a block of code to be executed when a release event is
received for the associated device and channel.
RELEASE [DEVICE,CHANNEL]
RELEASE [DEVCHAN[ ]]
{
// statements
}
This keyword also defines a section in a BUTTON_EVENT handler for process-
ing RELEASE events.
This keyword contains the number of the channel that was just turned off due
to an input change. The value remains valid for one pass through mainline.
The inactive state of this variable is all fields equal to zero.
This keyword contains the device-channel (a DEVCHAN structure) that was just
turned off due to an input change. Individual fields of this DEVCHAN structure
can be accessed using dot-operator syntax, as shown below:
RELEASE_DEVCHAN.Device
RELEASE_DEVCHAN.Device.Number
RELEASE_DEVCHAN.Device.Port
RELEASE_DEVCHAN.Device.System
RELEASE_DEVCHAN.Channel
These fields remain valid for one pass through mainline. The inactive state of
this variable is all fields equal to zero.
This system variable contains the number of the device associated with the
channel that was just turned off due to an input change. The value remains
valid for one pass through mainline. The inactive state of this variable is all
fields equal to zero.
NetLinx Programming Language Reference Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents