User`s guide
Creating a Stub Adaptor Test Procedure
8-5
Test Procedures Expected Results
vidObj = videoinput
('AdaptorName')
format without any error and its details
should be displayed at the MATLAB
command prompt. This will not work if only
device files are supported. The details should
be similar to:
Summary of Video Input Object Using
'MyDevice'.
Acquisition Source(s): MyDeviceSource is
available.
Acquisition Parameters:
'MyDeviceSource' is the current selected
source.
10 frames per trigger using the selected
source.
'640x480' video data to be logged upon
start.
Grabbing first of every 1 frame(s).
Log data to 'memory' on trigger.
Trigger Parameters:
1 'immediate' trigger(s) on start.
Status: Waiting for start.
0 frames acquired since starting.
0 frames available for getData.
where MyDevice is the device connected.
Run the following commands:
delete(vidObj);
vidObj
The following message should get displayed:
Invalid Image Acquisition object.
This object is not associated with any
hardware and should be removed from your
workspace using clear.
Run the following commands:
vidObj = videoinput
('AdaptorName');
imaqreset;
vidObj
The following message should get displayed:
Invalid Image Acquisition object.
This object is not associated with any
hardware and should be removed from your
workspace using clear.