xPC Target    

Target Object Properties

When using the target PC command line interface, target object properties are limited to parameters, signals, stoptime, and sampletime. Notice the difference between a parameter index (0, 1, . . .) and a parameter name (P0, P1, . . .).

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, and the target object name tg is used as an example for the MATLAB methods.

Target PC
MATLAB
setpar parameter_index = number
set(tg, 'parameter_name', number)
getpar parameter_index
get(tg, 'parameter_name')
stoptime = number
tg.stoptime = number
sampletime = number
tg.sampletime = number
set(tg, 'SampleTime', number)
parameter_name (P0, P1, . . .)
parameter_name = number
tg.parameter_name
tg.parameter_name = number
signal_name (S0, S1, . . .)
tg.S#


 Target Object Methods Scope Object Methods