MATLAB XPC TARGET 4 - API GUIDE Guide de l'utilisateur Page 36

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 372
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 371 372

Commentaires sur ces manuels

Pas de commentaire