User`s guide

8 Test Suite for Adaptor Writers
8-4
Test Procedures Expected Results
devInfo(:).DeviceInfo DefaultFormat: '640x480'
DeviceFileSupported: 0
DeviceName: 'MyDevice'
DeviceID: 1
ObjectConstructor: 'videoinput
('mydeviceimaq', 1)'
SupportedFormats: {'640x480'
'320x240'}
where,
DefaultFormat is the format for which the
second argument to addDeviceFormat is set
to true.
DeviceFileSupported is true (1) if the
device supports device files.
DeviceName is the name of the device as
defined in createDeviceInfo.
DeviceID is the ID associated with the device
as defined in createDeviceInfo. This is
usually 1.
ObjectConstructor is how a videoinput
object for that device is created in MATLAB.
SupportedFormats is a cell array
of all supported formats as defined
using addDeviceFormat. It is empty if
DeviceFileSupported is true and no
formats were added by DeviceFormat.
After the adaptor class has been written, follow these steps to test the videoinput
object creation and destruction.
Test Procedures Expected Results
Run the following command: The videoinput object should get created
using the first device found and the default