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

  • 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 36
Working with Scope Objects
Note Remember to start your scope to acquire signal data.
For example, configure a scope of type file named sc to the application with
the f ollow i ng characteristics:
Logs signal data into up to nine files whose sizes do not exceed 4096 bytes.
Creates files whose names contain the string
file_.dat.
Contains signal
4.
1 In the MATLAB window, type
tg.StopTime=-1;
This parameter d irects the target application to run indefinitely.
2 To add a scope of type file, type
sc=tg.addscope('file');
3 Toenablethefilescopetocreatemultiplelogfiles,type
sc.DynamicFileName='on';
Enable this setting to enable loggin g to mul tiple files.
4 To enable file scopes to collect data up to the number of samples, then
start over again, type
sc.AutoRestart='on';
Use this setting for the creation of multiple log files.
5 To li
mit each log file size to
4096,type
sc.MaxWriteFileSize=4096;
You mus t use this property. Set MaxWriteFileSi ze to a multiple of the
WriteSize property.
2-13
Vue de la page 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 530 531

Commentaires sur ces manuels

Pas de commentaire