User`s guide

imaq.VideoDevice
17-45
imaq.VideoDevice
Acquire one frame at a time from video device
Syntax
obj = imaq.VideoDevice
obj = imaq.VideoDevice(adaptorname)
obj = imaq.VideoDevice(adaptorname, deviceid)
obj = imaq.VideoDevice(adaptorname, deviceid, format)
obj = imaq.VideoDevice(adaptorname, deviceid, format, P1, V1, ...)
frame = step(obj)
[frame metadata] = step(obj)
Description
The VideoDevice System object allows single-frame image acquisition and code
generation from MATLAB. You use the imaq.VideoDevice function to create the
System object. It supports the same adaptors and hardware that the videoinput object
supports; however, it has different functions and properties associated with it. For
example, the System object uses the step function to acquire single frames.
obj = imaq.VideoDevice creates a VideoDevice System object, obj, that acquires
images from a specified image acquisition device. When you specify no parameters, by
default, it selects the first available device for the first adaptor returned by imaqhwinfo.
obj = imaq.VideoDevice(adaptorname) creates a VideoDevice System object,
obj, using the first device of the specified adaptorname. adaptorname is a text string
that specifies the name of the adaptor used to communicate with the device. Use the
imaqhwinfo function to determine the adaptors available on your system.
obj = imaq.VideoDevice(adaptorname, deviceid) creates a VideoDevice
System object, obj, with the default format for specified adaptorname and deviceid.
deviceid is a numeric scalar value that identifies a particular device available through
the specified adaptorname. Use the imaqhwinfo(adaptorname) syntax to determine
the devices available and corresponding values for deviceid.
obj = imaq.VideoDevice(adaptorname, deviceid, format) creates a
VideoDevice System object, obj, where format is a text string that specifies a particular