
10
3.9 -
Reviewing the Script Wizard Code
You can use the Script Editor to see the auto-generated (AG) code produced by the Script
Wizard. To view the code select menu item View->Script Editor…
Here is a sample Script and its code descriptions:
Wizard code starts here >
// precedes all Comments.
Button types are listed as >
Comments
Define variables >
Startup action calls function to
set Button 6 LED on power up.
Action sets LED 6 to ON or
OFF depending on the state of
LIO 6 on power up.
Action lights BTN1 LED and
Fires Salvo1.
Action clears BTN1 LED on
BTN1 release.
Action lights BTN2 LED, Stores
Source ID patched to Dest 22,
then connects Source 119 to Dest
22.
Release Action clears BTN2
LED then restores the stored
Source IF >0 to Dest 22.
A disconnect is performed if the
stored Source is = to zero.