User`s guide

DiskLogger
Examples Create and configure an AV I file object.
file = avifile('logfi le.avi');
file.Quality = 50;
Create and co nfigure a video input o bject.
vid = videoinput('win video', 1);
vid.LoggingMode = 'dis k&memory';
vid.DiskLogger = file;
Start logging data to disk.
start(vid)
To ensure that the logged data is written to the disk file, close the AVI
file. As an argument to the
close function, specify the value of the
video input object
DiskLogger property, vid.DiskLogger, to reference
the AVI file object, not the original variable,
file, returned by the
avifile function.
file = close(vid.Disk Logger);
Delete the image acquisition objectfrommemorywhenitisnolonger
needed.
delete(vid)
clear vid
See Also Functions
videoinput
Properties
DiskLoggerFrameCount, Logg ing, LoggingMode
14-7