MATLAB XPC TARGET RELEASE NOTES Guida Utente Pagina 127

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 126
Parameter Tuning and Inlining Pa rameters
2 Load the parameter file. For example, type
tg.loadparamset('xpc_osc4_param1');
3 Display a list o f parameters. For example, type
tg.ShowParameters='on';
and then type
tg
The MATLAB window disp la ys a li st of parameters and their v al ues for
the target object.
Inlined Parameters
This procedure describes how you can globally inline parameters for a mode l,
then specify which of these parameters you still want to be tunable. It
assumes that you are familiar with how to build target applications (if you
are not, read the xPC Target Getting Started Guide first). After you have
performed this procedure, you will able to tune these parameters.
“Tuning Inlined Parameters with xPC Target Explorer” on page 3-82
“Tuning Inlined Parameters with the MATLAB Interface” on page 3-84
Note You cannot tune inlined parameters that are structures.
The following procedure uses the Simulink model xpcosc.mdl as an example.
1 In the MATLAB Command Window, type
xpcosc
The model is displayed in the Simulink window.
2 Select the blocks of the parameters you want to make tunable. For example,
this procedure makes the signal generator’s amplitude parameter tunable.
Use the variable
A to represent the amplitude.
3-79
Vedere la pagina 126
1 2 ... 122 123 124 125 126 127 128 129 130 131 132 ... 530 531

Commenti su questo manuale

Nessun commento