MATLAB XPC TARGET RELEASE NOTES Guide de l'utilisateur Page 118

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 531
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 117
3 Signals and Parameters
Parameter Tuning with the MATLAB Interface
You use the MATLAB functions to change block parameters. W ith these
functions, y ou do not ne ed to set the Simulink interface to external mode, and
you do not need to connect the Simulink interface with the target application.
You can download parameters to the target application while it is running
or be tween runs. This feature lets you change parameters in your target
application w ithout rebuilding the Simulink model.
After you download a target application to the target PC, you can change
block parameters using xPC Target functions. This procedure uses the
Simulink model
xpcosc.mdl as an example, and assumes y ou have created
and downloaded the target application for that model. It also assumes that
you have assigned
tg to the appropriate target PC.
1 In the MATLAB window, type
+tg
or
tg.start
or
start(tg)
The t arget PC displ ays the following message:
System: execution started (sample time: 0.001000)
2 Display a list of parameters. Type e ither
set(tg,'ShowParameters','on')
or
tg.ShowParameters='on'
The latter command displays a list of properties for the target object.
ShowParameters = on
3-70
Vue de la page 117
1 2 ... 113 114 115 116 117 118 119 120 121 122 123 ... 530 531

Commentaires sur ces manuels

Pas de commentaire