xPC Target    

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 Command
Description and Syntax
MATLAB Equivalent
setvar
Set a variable to a value. Later you can use that variable to do a macro expansion.
Syntax: setvar variable_name = target_pc_command
For example, you can type setvar aa=startscope 2, setvar bb=stopscope 2
none
getvar
Display the value of a variable.
Syntax: getvar variable_name
none
delvar
Delete a variable.
Syntax: delvar variable_name
none
delallvar
Delete all variables.
Syntax: delallvar
none
showvar
Display a list of variables.
Syntax: showvar
none


  Using Variables on the Target PC Web Browser Interface