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