MATLAB XPC TARGET RELEASE NOTES Guía de usuario Pagina 93

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 531
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 92
1 2 ... 88 89 90 91 92 93 94 95 96 97 98 ... 530 531

Comentarios a estos manuales

Sin comentarios