Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Camera Acquisition in c/c++

hello everybody,
while searching for solutions in this board i only could find hints for multiple camera
acquisition with labview. but i have to program in c/c++.
does anybody know where to find examples, tutorials or code snippets?

best regards,
malte
0 Kudos
Message 1 of 6
(4,356 Views)

Malte,
attached you can find a CVI code for the 1408 and multiple channels (created with NI-Imaq 2.2). Maybe the source code helps you to create your own solution. 1409 is the follower of the 1408.

Note:
This sample demonstrates how to scan 1408 channels in multiple buffers using low level functions. The video sources need to use the same synchronization signals. The code scans from channel 0 on up until it reaches NUM_RING_BUFFERS.

The display is done using the function imgPlot, the canvas object is used to reserve some room on the panel. It is also possible to display the picture using a Canvas or a Graph. See the Display sub-directory.

Best regards,
Steffen

0 Kudos
Message 2 of 6
(4,349 Views)
Hi,
 
I would like to run Multiple Camera Acquisition using NI-PCI 1410 and LabVIEW.
Is there anyone who could send me an example VI that opens  a camera session both on port 0 and port 1. I have tried img0::1 but did not find the port.
All channels are working fine in MAX.
Thanks,
 
Andras
0 Kudos
Message 3 of 6
(4,166 Views)

Look for a separate channel input on the vi you use to configure the acquisition.  I don't think you need to create two sessions, since you can only do one independent acquisition at a time.

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 6
(4,151 Views)
Thank you Bruce,
 
This is the solution! I have to use the channels.
 
It answeres my question posted on the thread below.
 
i need an example with two camson one IMAQ 1410
 
Thanks again,
Andras
0 Kudos
Message 5 of 6
(4,124 Views)

You can't read two cameras at the same time with the 1410.

You can alternate between them if they are synchronized.  Synchronization makes both cameras start a new frame simultaneously and they use identical timing signals.  In this case, you can do a continuous buffered acquisition that alternates between the channels.

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 6 of 6
(4,103 Views)