MATLAB XPC TARGET 4 - API GUIDE Podręcznik Użytkownika Strona 36

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 35
2 Targets and Scopes in the MATLAB Interface
2-18
sc(1).trigger;
% Start things off by triggering scope 1
data = zeros(0, 2);
t = [];
scNum = 1;
% We will look at scope 1 first
% Use some appropriate condition instead of an infinite loop
while(1)
% loop until the scope has finished
while ~strcmp(sc(scNum).Status, 'Finished'), end
data(end + 1 : end + 500, :) = sc(scNum).Data;
t( end + 1 : end + 500) = sc(scNum).Time;
start(sc(scNum));
% Restart the scope
scNum = 3 - scNum;
% Switch to the next scope
end
Przeglądanie stron 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 371 372

Komentarze do niniejszej Instrukcji

Brak uwag