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

  • 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 43
2 Targets and Scopes in the MATLAB
®
Interface
Acquisition of Gap-Free Data
The following procedure describes how you can programmatically acquire
gap-free data with two scopes.
1 Ensure that you have already built and downlo aded the Simulink model
xpcosc.mdl to the target PC.
2 In the MATLAB C ommand Window, assign tg to the target P C and set the
StopTime property to 1. For example,
tg=xpctarget.xpc
tg.StopTime = 1;
3 Add two scopes of type host to the target application. You can assign the
twoscopestoavector,
sc, so that you can work with both scopes with one
command.
sc = tg.addscope('host', [1 2]);
4 Add the signals of interest (0 and 1) to both scopes.
addsignal(sc,[0 1]);
2-20
Vue de la page 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 530 531

Commentaires sur ces manuels

Pas de commentaire