Programming
81
NetLinx Studio (v2.4 or higher)
Code Wizard Dialog - Channel Tab
The items in the Channel tab are described below:
Device
The device name used during code generation. This name may
appear in a DEVCHAN definition, BUTTON_EVENT, PUSH,
RELEASE or feedback assignment statements depending on the
platform and options selected.
From, To, Total
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.
Array Name
The array name used for generating DEVCHAN or INTEGER array
for button ranges.
Hold Time
This value is used when generating the HOLD statement.
Comment
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. //).
Insert
Once you have made the relevant selections on this tab, click this
command button to insert the specified code into the file.
On
Generate ON statements
Off
Generate OFF Statements
No Arrays
Channel ranges will be generated without using arrays, i.e. multiple
CHANNEL_EVENTs will be generated.
Use DEVCHAN
Channel ranges will be placed in a DEVCHAN array named Array
Name using the Device and channel range defined as From
through To in the DEFINE_VARIABLE section. A single
CHANNEL_EVENT statement referencing Array Name will be gen-
erated. Note that when Use DEVCHAN is selected, GET_LAST() is
selected and grayed out. This option is not available if generating
code for Axcess.
Use INTEGER
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 state-
ment referencing Device and Array Name will be generated.
Channel Index/GET_LAST()
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. The channel
index calculation is used if generating code for Axcess.
SWITCH/CASE
This option will include a SWITCH/CASE construct under the ON
and/or OFF statements. The SWITCH will be based on the Chan-
nel Index. Note that when SWITCH/CASE is selected, the Channel
Index option is selected, and grayed out.
Stacked
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 gener-
ated on each line with an empty comment above the line.
Device
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.
Summary of Contents for NETLINX STUDIO V2.4
Page 1: ...instruction manual Software NetLinx Studio v2 4 or higher ...
Page 16: ...NetLinx Studio v2 4 or higher 4 NetLinx Studio v2 4 or higher ...
Page 32: ...The NetLinx Studio v2 4 Work Area 20 NetLinx Studio v2 4 or higher ...
Page 44: ...Working With Workspace Files 32 NetLinx Studio v2 4 or higher ...
Page 88: ...Working With Systems and System Files 76 NetLinx Studio v2 4 or higher ...
Page 118: ...Programming 106 NetLinx Studio v2 4 or higher ...
Page 152: ...Working With Online Devices 140 NetLinx Studio v2 4 or higher ...