User`s guide
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