LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ni IMaq IEEE-1394 v2.0 plug/unplug/enumeration

The IMaq IEEE-1394 v2.0 Driver contains some new missed function's espec. the Camera plug/unplug and enumeration.
I can't find any example, how to use this functions correctly. The Cam. plug/unplug functions are impl. by the IMAQ1394 Occurence Config. This Vi needs a valid Session ID, but is there none camera attached or the valid Cam. are detached, this Vi fails.

In the future of my project, there are up to 15 Camera's attached, based on two PXI-8252 1394 Host adapters run's under Lv7.1-RT

regards
M.Funke
Applications Engineer
0 Kudos
Message 1 of 2
(2,503 Views)
Dear Mr. Funke,

as starting point you can use the programming model of the imaq example ll occurence vi's, that ship with LabVIEW. Implement the imaq 1394 vi's in a similar order. Place a loop, in which you wait on the occurence.
Information how the imaq 1394 camera driver assigns interface numbers:
camX (where X is an integer, and the first one is 0) is the interface name and is specific to a single camera.
On Windows, the camera file is created when imaq1394CameraOpen is called (either through MAX or programmatically), and the imaq1394.ini file is updated. The imaq1394.ini file is created when the first camera is initialized. You can call imaq1394 Init with the interface name.
The camera order (cam0 vs. cam1) is determined by uuid (unique universal identifier) of camera. The lowest uuids are first. So if you plug in a camera, it will be cam0. If you plug in another one, it could be cam0 or cam1 depending on its uuid. If you have two cameras plugged in and you unplug cam0, cam1 will become cam0.

Regards,
Philippe Goetz
Applications Engineer, National Instruments
0 Kudos
Message 2 of 2
(2,483 Views)