MATLAB XPC TARGET RELEASE NOTES Podręcznik Użytkownika Strona 44

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 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
Przeglądanie stron 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 530 531

Komentarze do niniejszej Instrukcji

Brak uwag