Lesson 2 – Creating a Test Method
459
To change a value for a specified variable or expression, enter the
value into the corresponding cell of the Value column in the Watch
view.
Viewing Values of the ARRAY_X Array Variable
To view values in variables of the system-defined data type like
ARRAY_I or ARRAY_D in the WDB GUI, do as follows:
1 Click the Command tab.
2 Type a WDB command in the command input area. For example,
to print the value of 10th element of
ARRAY_D AnalogWave
variable, type:
p AnalogWave[9]
3
View the echoed command and its output in the command output
area, directly above the input area.
Beside, there are the following approaches:
• Add the PUT_DEBUG API(s) in your codes, then view the output
data using the Mixed-Signal Tool. See "Recording data to log file"
on page 460.
• Add the PUT_DATALOG API(s) in your codes, then view the
logged data using the Mixed-Signal Tool. See "Recording data to log
file" on page 460.
• Add codes for printing the values in your codes, then view the
displayed data in the Program Console window that is
automatically opened whenever output is generated by the
program being debugged.
Test Method Program for Debugging
Updating the
hardware
If you change the setting data for the present analog set, the
changes are reflected to the analog set and hardware without
executing the test when the
FLUSH function is called. Therefore, if
you need to monitor the changed settings on the Analog Setup Tool