This is machine translation

Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Translate This Page

MathWorks Machine Translation

The automated translation of this page is provided by a general purpose third party translator tool.

MathWorks does not warrant, and disclaims all liability for, the accuracy, suitability, or fitness for purpose of the translation.

DeviceID

Identify image acquisition device represented by video
input object

Description

The DeviceID property identifies the device
represented by the video input object.

A device ID is a number, assigned by an adaptor, that uniquely
identifies an image acquisition device. The adaptor assigns the first
device it detects the identifier 1, the second
device it detects the identifier 2, and so on.

You must specify the device ID as an argument to the videoinput function
when you create a video input object. The object stores the value
in the DeviceID property and also uses the value
when constructing the default value of the Name property.

To get a list of the IDs of the devices connected to your system,
use the imaqhwinfo function, specifying the name
of a particular adaptor as an argument.

Characteristics

Access

Read only

Data type

double

Values

Any nonnegative integer

Examples

Use the imaqhwinfo function to determine
which adaptors are connected to devices on your system.

Use the imaqhwinfo function again, specifying
the name of the adaptor, to find out how many devices are available
through that adaptor. The imaqhwinfo function returns
the device IDs for all the devices in the DeviceIds field.