National Instruments IEEE 1394 Manuel D’Utilisation
Chapter 2
Basic Acquisition with NI-IMAQ for IEEE 1394 Cameras
© National Instruments Corporation
2-3
Every camera has an
.iid
interface file and an
.icd
camera file.
•
Interface files—Store information about which physical camera is
associated with a camera name. Each interface file can be used by only
a single camera.
associated with a camera name. Each interface file can be used by only
a single camera.
•
Camera files—Store all the configurable attributes. Camera files can
be shared between identical cameras. Use MAX to configure the
default state of a particular camera.
be shared between identical cameras. Use MAX to configure the
default state of a particular camera.
Figure 2-1 shows the relationship between cameras, interface files, and
camera files.
camera files.
Figure 2-1. Relationship Between Cameras, Interface Files, and Camera Files
Note
Use the Enumerate function to query the number and names of available cameras.
When you open a camera session with the Initialize function, the camera
with the unique serial number described by the interface file
with the unique serial number described by the interface file
cam
n.iid
opens, where
n
is the reference to the camera. If the camera is not present
and a camera of the same make and model is present, as described in the
interface file, the driver opens the available camera. The interface file
updates to use the new camera. The camera file described by the interface
interface file, the driver opens the available camera. The interface file
updates to use the new camera. The camera file described by the interface
Table 2-1. Camera Naming Convention
Camera Name
IEEE 1394 Camera Installed
cam0
Device 0
cam1
Device 1
...
...
cam
n
Device n
Default.icd
Cam1.iid
MyCam.icd
Cam0.iid
or