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

  • 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 92
Signal Tracing
Signal Tracing with the MATLAB Inter face and File Scopes
This procedure uses the Simulink model xpcosc.mdl as an example, and
assumes you have built the target application for this model. It also assumes
that you have a serial communication connection. Thistopicdescribeshowto
trace signals w ith file scopes .
Note The signal data file can quickly increase in size. You should examine
thefilesizebetweenrunstogaugethegrowthrateofthefile. Ifthesignal
data file grow s bey ond the available space on the disk, the signal data might
be corrupted.
1 Create an xPC Target application that works with file scopes. Type
tg=xpctarget.xpc('rs232', 'COM1', '115200')
2 To get a list of signals, type either
set(tg, 'ShowSignals', 'on')
or
tg.ShowSignals='on'
The MATLAB window displays a list of the target object properties for
the available signals. For example, the signals for the model
xpcosc.mdl
are shown below.
ShowSignals = on
Signals = INDEX VALUE BLOCK NAME LABEL
0 0.000000 Integrator1
1 0.000000 Signal Generator
2 0.000000 Gain
3 0.000000 Integrator
4 0.000000 Gain1
5 0.000000 Gain2
6 0.000000 Sum
For more information, see “Signal Monitoring with the MATLAB Interface”
on page 3-9.
3-45
Vue de la page 92
1 2 ... 88 89 90 91 92 93 94 95 96 97 98 ... 530 531

Commentaires sur ces manuels

Pas de commentaire