I’m building a multi camera application and and I have problems accessing more than one camera at once.
I load the cameras roughly with these two functions:
IMG img0, img1; LoadImageFile("GenICam.vin", img0); CS2SetCamport(img0, 1, 0, img1);
Now I would expect that I can access the cameras as configured with the GenICam Browser.
- Camera 0 with “img0”
- Camera 1 with “img1”
However, only camera 1 works as excepted. Calling G2Grab fails on camera 0. If I do not call CS2SetCamport camera 0 works fine, so I’m quite sure this is not a hardware issue.
I also read in the documentation for GS2SetCamPort:
“The old image still exists but all driver interfaces ‘move’ to the new image”
Sounds like that has something to do with it, but how can I prevent the old image from breaking, so that I can access both cameras at once.