Viewing Variables - AMX AXCESS CONTROL SYSTEM PROGRAM Instruction Manual

Programming language
Table of Contents

Advertisement

Viewing Variables

There are two ways to view the values in variables as a program is executed. You can use the
SEND_STRING Ø method to display a variable's value at certain points in a program, or you can
use the variable watch window.
The variable watch window is accessed through the Diagnostics menu, and it can only be activated
if there is a compiled program loaded in the computer and Central Controller. FIG. 29 shows the
variable watch window.
FIG. 29 Variable watch window
The variable watch window allows you to view the contents of up to ten variables at a time. The
window is updated after each pass through mainline. The displayed value of a variable is its value at
the end of mainline. The bottom of the window lists the actions of some function keys and displays
a speedometer that is updated on each pass through mainline. Here is a summary of the available
functions:
The arrow keys move the highlight bar in the window, allowing you to select which
variable to modify or delete.
!
!
!
!
!
Axcess Programming Language
<F1> - Adds a variable to watch. Only simple variables, one-dimensional arrays, and the
rows of a two-dimensional arrays can be viewed. The <Ins> key also activates this
function.
<F2> - Deletes the currently selected variable from the window. The <Del> key also
activates this function.
<F3> - Sets the viewing mode for arrays to the current length. The number of locations
that are displayed is determined by the current length value of the array.
<F4> - Sets the viewing mode for arrays to the length defined in the definition section.
All of the locations of the array are displayed, regardless of the current length value of the
array.
<F5> - Allows you to change the value of the currently selected variable.
Debugging
107

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Axcess

Table of Contents