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

  • 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 132
Parameter Tuning and Inlining Pa rameters
1 Sa ve th e following code in a MA T L A B file. For example, change_inlineA.
tg=xpc; %Create xPC Target object
pid=tg.getparamid('','A'); %Get parameter ID of A
if isempty(pid) %Check value of p id.
error('Could not find A');
end
tg.setparam(pid,100); %If pid is valid, set parameter value.
2 Execute that MATLA B file. For example, type
change_inlineA
3 To see the new p arameter value, ty pe
tg.showparameters='on'
The tg object information is displayed, including the parameter lines:
NumParameters = 1
ShowParameters = on
Parameters = INDEX VALUE TYPE SIZE PARAMETER NAME BLOCK
NAME
0 100 DOUBLE Scalar A
3-85
Vue de la page 132
1 2 ... 128 129 130 131 132 133 134 135 136 137 138 ... 530 531

Commentaires sur ces manuels

Pas de commentaire