User`s guide

17 Functions — Alphabetical List
17-94
videoinput
Create video input object
Syntax
obj = videoinput(adaptorname)
obj = videoinput(adaptorname,deviceID)
obj = videoinput(adaptorname,deviceID,format)
obj = videoinput(adaptorname,deviceID,format,P1,V1,...)
Description
obj = videoinput(adaptorname) constructs the video input object obj. A video
input object represents the connection between MATLAB and a particular image
acquisition device. 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 = videoinput(adaptorname,deviceID) constructs a video input object obj,
where deviceID is a numeric scalar value that identifies a particular device available
through the specified adaptor, adaptorname. Use the imaqhwinfo(adaptorname)
syntax to determine the devices available through the specified adaptor. If deviceID
is not specified, the first available device ID is used. As a convenience, a device's name
can be used in place of the deviceID. If multiple devices have the same name, the first
available device is used.
obj = videoinput(adaptorname,deviceID,format) constructs a video input
object, where format is a text string that specifies a particular video format supported
by the device or the full path of a device configuration file (also known as a camera file).
To get a list of the formats supported by a particular device, view the DeviceInfo
structure for the device that is returned by the imaqhwinfo function. Each DeviceInfo
structure contains a SupportedFormats field. If format is not specified, the device's
default format is used.
When the video input object is created, its VideoFormat field contains the format name
or device configuration file that you specify.