Programming
80
NetLinx Studio (v2.4 or higher)
Code Wizard - Advanced Users
The Code Wizard can be toggled to show the individual dialogs (containing detailed options) for all
the above functionality that can be used by advanced users. To view the advanced options in every
dialog, de-select the
Wizard Style
checkbox (on by default).
When the Wizard generates a new code segment, it is inserted in the active Source Code file, in the
appropriate section of the code.
Code Wizard Dialog - Button Tab
Select
Tools > Code Wizard
to launch the NetLinx Studio Code Wizard. De-select the
Use
Wizard Style
checkbox to access the individual tabs containing detailed options for each code
type. In NetLinx, button events are always created using the BUTTON_EVENT handler in the
DEFINE_EVENT section. In Axcess, PUSHes, RELEASEs and feedback assignments are
generated in the DEFINE_PROGRAM section.
The items in the
Button
tab are described below:
Push
Generate PUSH statements
Release
Generate RELEASE Statements
Hold
Generate HOLD statement. Not supported in Axcess.
Feedback
Generate feedback assignments.
No Arrays
Button Range will be generated without using arrays, i.e. multiple
BUTTON_EVENTs, PUSHes or RELEASEs will be generated. This
is the default option is generating code for Axcess.
Use DEVCHAN
Button ranges will be placed in a DEVCHAN array named Array
Name using the Device and button range defined as From through
To in the DEFINE_VARIABLE section. A single BUTTON_EVENT
statement referencing Array Name will be generated. 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
Button ranges will be placed in an INTEGER array named Array
Name using the button range defined as From through To in the
DEFINE_VARIABLE section. A single BUTTON_EVENT statement
referencing Device and Array Name will be generated. This option is
not available if generating code for Axcess.
Button Index/GET_LAST()
This option will include a calculation for the button index using a
mathematical calculation, BUTTON.INPUT.CHANNEL - From, for
non-array button ranges and a function call to GET_LAST(),
GET_LAST(Array Name), for array button ranges. The button index
calculation is used if generating code for Axcess.
SWITCH/CASE
This option will include a SWITCH/CASE construct under the PUSH
and/or RELEASE statements. The SWITCH will be based on the
Button Index. Note that when SWITCH/CASE is selected, the Button
Index option is selected, and grayed out. When generating Axcess
code, a SELECT/ACTIVE construct will be generated instead of a
SWITCH/CASE.
Stacked
This option will cause each button 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.
Hold Repeat
This option will include the REPEAT keyword in the HOLD event
handler. This option is not available when generating Axcess code.
Содержание NETLINX STUDIO V2.4
Страница 1: ...instruction manual Software NetLinx Studio v2 4 or higher ...
Страница 16: ...NetLinx Studio v2 4 or higher 4 NetLinx Studio v2 4 or higher ...
Страница 32: ...The NetLinx Studio v2 4 Work Area 20 NetLinx Studio v2 4 or higher ...
Страница 44: ...Working With Workspace Files 32 NetLinx Studio v2 4 or higher ...
Страница 88: ...Working With Systems and System Files 76 NetLinx Studio v2 4 or higher ...
Страница 118: ...Programming 106 NetLinx Studio v2 4 or higher ...
Страница 152: ...Working With Online Devices 140 NetLinx Studio v2 4 or higher ...
Страница 199: ...Index 187 NetLinx Studio v2 4 or higher ...