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

  • 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 108
Signal Logging
assumes you 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=xpc
2 Type
+tg
or
tg.start
or
start(tg)
The target application starts and runs until it reaches the final time set in
the target object property
tg.StopTime.
The outputs are the signals connected to Simulink Outport blocks. The
model
xpcosc.mdl has just one Outport b lock, labeled 1, and there are two
states. This Outport block shows the signals lea ving the bl ocks lab eled
Integrator1 and Signal Generator.
3 Plot the signals from the Outport block and the states. In the MATLAB
window, type
plot(tg.TimeLog,tg.Outputlog)
Values for the logs are uploaded to the host PC from the target application
on the target PC. If you want to upload part of the logs, see the target
object method
getlog.
3-61
Vue de la page 108
1 2 ... 104 105 106 107 108 109 110 111 112 113 114 ... 530 531

Commentaires sur ces manuels

Pas de commentaire