User`s guide

2 Advanced Procedures
2-24
Using Variables on the Target PC
Use variables to tag unfamiliar commands, parameter indices, and signal
indexes with more descriptive names.
After you have created and downloaded a target application to the target PC,
you can create target PC variables.
1 On the target PC, press C.
The target PC command window is activated, and a command line opens.
2 In the Cmd box, type a variable command. For example, if you have a
parameter that controls a motor, you could create the variables
on and off
by typing
setvar on = p7= 1
setvar off = p7=0
3 Type a variable name. For example, to turn the motor on, type
on
The parameter P7 is changed to 1, and the motor turns on.
Variable Commands
The following table lists the syntax for the target commands that you can use
on the target PC. The MATLAB equivalent syntax is shown in the right
column.
Target PC MATLAB
setvar variable_name = target
command
getvar variable_name
delvar variable_name
delallvar