This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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

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

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.