Main Content

Implementing the Acquisition Thread Function Test Procedure

As part of the Image Acquisition Toolbox Adaptor Kit, we now offer a test procedure and automated tests for third-party adaptor developers and camera vendors to test adaptors and hardware against the toolbox. This test procedure is part of that suite. For more information, see Testing Adaptors or Hardware.

After implementing the acquisition thread function per instructions in “Implementing the Acquisition Thread Function” in this Adaptor Kit documentation, follow these steps to test the acquisition thread function.

Test ProceduresExpected Results
Run the following commands:
vidObj = videoinput
   ('AdaptorName');
preview(vidObj)

A preview window should open and display the acquired video. Verify that the video is getting acquired as expected based on the VideoFormat and VideoResolution. To close the preview window, press the (x) button or type closepreview at the command prompt.

To clean up after this step, delete and clear the object.

Run the following command:
vidObj = videoinput
   ('AdaptorName');
start(vidObj);
wait(vidObj)
vidObj.FramesAcquired

The commands should execute without any error or warning. vidObj.FramesAcquired will display the number of acquired frames, which should be 10 unless the startup or period between frames is lengthy.

To clean up after this step, delete and clear the object.