MATLAB XPC TARGET RELEASE NOTES Betriebsanweisung Seite 44

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 531
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 530 531

Kommentare zu diesen Handbüchern

Keine Kommentare