EasyManuals Logo

AMX NetLinx Studio User Manual

AMX NetLinx Studio
230 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #124 background imageLoading...
Page #124 background image
Building and Debugging Source Code
112
NetLinx Studio - Instruction Manual
Entering and Exiting Debug Mode
1.
Open and compile a Source Code file (that contains at least one variable), if you have not already done so. The file
must be successfully compiled before you can enter debug mode.
2. Choose Debug > Start Debugging to open the Watch Bar (FIG. 179 on page 111).
If this option is disabled, make sure your Master Communications Port settings are set to connect to your Master
Controller. See the Connecting to a Master Controller section on page 119 for details.
3. Right-click inside the Watch Bar to open the Watch Bar context menu.
4. Click Add to insert a new variable in the Watch Bar. A box appears in the window, with a cursor blinking in the
Name column.
5. Type the syntax of the variable exactly as it is defined in the code and press the Enter key. The value of the specified
variable appears next to the variable (in the Value column).
6. You can select different view formats for the Value by right-clicking on the line containing the variable/value, and
clicking on Display in the Watch Bar context menu. This opens the Display sub-menu, containing the following
view options:
To exit Debug mode, select Debug > Stop Debugging. or close the Watch Bar.
Using Single-Step Mode
In Single-step mode, program execution is suspended between each pass through mainline, allowing you to test
programs one line at a time. Single-step mode works differently in NetLinx than it does in Axcess:
In NetLinx systems it executes a single instruction in the source file
In Axcess systems it executes a single line of code in the Mainline
To use Single-step mode:
1. Right-click on a watched variable and choose Debug > Single Step to put the Master into single-step mode.
2. With the watched variable selected, select Debug > Single Step. This command executes mainline one time and
breaks.
Changing the Value of a Watched Variable
Once you have entered Debug mode, you can change the name and/or value of any watched variable, via the Va lu e
column in the Watch Bar:
1. Select a watched variable in the Watch Bar.
2. To change the variable's value, double-click on the desired variable's value to change the value to an edit field,
which you can modify as desired.
ASCII Display displays the value of the watched variable in ASCII format.
Decimal Display displays the value of the watched variable in decimal format.
Hexadecimal Display displays the value of the watched variable in hexadecimal format.
Octal Display displays the value of the watched variable in octal format.
Binary Display displays the value of the watched variable in binary format.
In NetLinx, you can use breakpoints with single-step mode. When the breakpoint is
encountered (and the program is suspended), you can single-step without a watched
variable reference.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the AMX NetLinx Studio and is the answer not in the manual?

AMX NetLinx Studio Specifications

General IconGeneral
BrandAMX
ModelNetLinx Studio
CategorySoftware
LanguageEnglish

Related product manuals