MATLAB XPC TARGET 4 - API GUIDE Betriebsanweisung Seite 97

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 372
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 96
Parameter Tuning and Inlining Parameters
3-61
1 Save the following code in an M-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 pid.
error('Could not find A');
end
tg.setparam(pid,100); %If pid is valid, set parameter value.
2 Execute that M-file. For example, type
change_inlineA
3 To see the new parameter value, type
tg.showparameters='on'
The tg object information is displayed, including the parameters lines:
NumParameters = 1
ShowParameters = on
Parameters = INDEX VALUE TYPE SIZE PARAMETER NAM BLOCK NAME
0 100 DOUBLE Scalar A
Seitenansicht 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 371 372

Kommentare zu diesen Handbüchern

Keine Kommentare