Code Wizard Dialog - Channel Tab - AMX NetLinx Studio Instruction Manual

Netlinx design v3.3 or higher
Table of Contents

Advertisement

Programming
Code Wizard - Button tab Options (Cont.)
From, To, Total
Array Name
Hold Time
Comment
Insert

Code Wizard dialog - Channel tab

The items in the Channel tab (FIG. 166) are described below:
FIG. 167
Code Wizard dialog - Channel tab
Code Wizard - Channel tab Options
On
Off
No Arrays
Use DEVCHAN Channel ranges will be placed in a DEVCHAN array named Array Name using the Device and channel
Use INTEGER
Channel Index
SWITCH/CASE This option will include a SWITCH/CASE construct under the ON and/or OFF statements. The SWITCH
Stacked
Device
92
The button range used during code generation. The range is 1 - 1000. You may change any of these
values; the others will adjust automatically.
A value of 0 (zero) in the From field will generate an "all button" handler. In this case, code generation
cannot support arrays or feedback.
The array name used for generating DEVCHAN or INTEGER array for button ranges.
This value is used when generating the HOLD statement.
This value is used on the lines before the array definition, BUTTON_EVENT, PUSH, and RELEASE
and feedback statements as determined by the options.
Comments in NetLinx are always line-style comments (i.e. //).
Once you have made the relevant selections on this tab, click this button to insert the specified code
into the file.
Generate ON statements
Generate OFF Statements
Channel ranges will be generated without arrays (i.e. multiple CHANNEL_EVENTs will be generated).
range defined as From through To in the DEFINE_VARIABLE section. A single CHANNEL_EVENT
statement referencing Array Name will be generated. Note that when Use DEVCHAN is selected,
GET_LAST() is selected and disabled.
Channel ranges will be placed in an INTEGER array named Array Name using the channel range
defined as From through To in the DEFINE_VARIABLE section. A single CHANNEL_EVENT statement
referencing Device and Array Name will be generated.
This option will include a calculation for the channel index using a mathematical calculation,
CHANNEL.CHANNEL - From, for non-array channel ranges and a function call to GET_LAST(),
GET_LAST(Array Name), for array channel ranges.
will be based on the Channel Index. Note that when SWITCH/CASE is selected, the Channel Index
option is selected and disabled.
This option will cause each channel in the Array Name definition to be generated on its own line with an
empty comment at the end of the line. If this option is not selected, eight channels will be generated on
each line with an empty comment above the line.
The device name used during code generation. This name may appear in a DEVCHAN definition or
CHANNEL_EVENT statement depending on the platform and options selected.
NetLinx Studio - Instruction Manual

Advertisement

Table of Contents
loading

Table of Contents