MATLAB XPC TARGET 4 - API GUIDE Guida Utente Pagina 22

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 21
2 Targets and Scopes in the MATLAB Interface
2-4
1 In the MATLAB window, type
tg
The current target application properties are uploaded to the host PC, and
MATLAB displays a list of the target object properties with the updated
values.
Note that the target object properties for
TimeLog, StateLog, OutputLog, and
TETLog are not updated at this time.
2 Type
+tg
The Status property changes from stopped to running, and the log
properties change to
Acquiring.
For a list of target object properties with a description, see the target object
function
get (target object) on page 14-37
Setting Target Object Properties from the Host PC
You can change a target object property by using the xPC Target set method
or the dot notation on the host PC.
With xPC Target you can use either a function syntax or an object property
syntax to change the target object properties. The syntax
set(target_object,
property_name, new_property_value)
can be replaced by
target_object.property_name = new_property_value
For example, to change the stop time mode for the target object
tg,
1 In the MATLAB window, type
tg.stoptime = 1000
2 Alternatively, you can type
set(tg, 'stoptime', 1000)
When you change a target object property, the new property value is
downloaded to the target PC. The xPC Target kernel then receives the
information and changes the behavior of the target application.
Vedere la pagina 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 371 372

Commenti su questo manuale

Nessun commento