Rshift; Select; Send_Command; Send_Level - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

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

RSHIFT

SELECT...ACTIVE

SEND_COMMAND

SEND_LEVEL

SEND_STRING

148
This keyword causes the bits in the associated value field to be shifted right.
This has the effect of dividing by 2n where n is the number of bit positions to
shift. The symbol >> is equivalent to RSHIFT. For example:
INT2 = INT1 RSHIFT 2
is equivalent to:
INT2 = INT1 >> 2
Both statements shift INT1 right two positions. Either statement could be
replaced with:
INT2 = INT1 / 4
This keyword statement provides a programming construct for selective execu-
tion of code blocks based on the evaluation of a series of conditions.
See the Conditionals & Loops section on page 17 for more information.
This keyword sends device-specific commands to a NetLinx device. The syn-
tax is:
SEND_COMMAND DEV, '<command string>'
- or -
SEND_COMMAND DEV[ ], '<command string>'
This keyword sends a value to a specific level on a NetLinx device/port. The
syntax follows any one of the four following examples:
SEND_LEVEL DEV, Level, Value
SEND_LEVEL DEV[ ], Level, Value
SEND_LEVEL DEVLEV, Value
SEND_LEVEL DEVLEV[ ], Value
Parameters:
• DEV: Device containing the specified level.
• Level: Number of the level to receive the new value.
• Value: New level value.
• DEV[ ]: Device array (each device contains the specified level).
• DEVLEV: Device-level to receive the new value.
• DL[ ]: Device-level array (each will receive the new value).
This keyword sends a string to a NetLinx device/port. The syntax is:
SEND_STRING DEV, '<string>'
- or -
SEND_STRING DEV[ ], '<string>'
When sending to an IP socket, you may receive the following error (via
ONERROR event):
17 Local Port Not Open
This error means you are trying to send a string to a local port on which
IP_CLIENT_OPEN or IP_SERVER_OPEN has not been called.
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