MATLAB XPC TARGET 4 - IO Guida Utente Pagina 30

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 182
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 29
2 Advanced Procedures
2-20
Target Object Methods
When using the target PC command line interface, target object methods are
limited to starting and stopping the target application.
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 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
start tg.start
or +tg
stop tg.stop or -tg
reboot tg.reboot
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)
Vedere la pagina 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 181 182

Commenti su questo manuale

Nessun commento