Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

trigger for two camera simutanously

Hi there

i am newbie with NI

 

how i trigger two camera simultanously to capture images in the same time exactly?

i use 2 frame grabber PCI 1422, 2 camera Pulnix TM1040, BNC 2121, PCI 6602, IMAQ D2504, and IMAQ D100.

i already have VI for triger one camera only, should i modify it or just copy paste for the second camera?

i am using LABVIEW 7

 

thank you

0 Kudos
Message 1 of 11
(4,835 Views)

Are you happy with the code that works for a single camera? Does it provide the desired image results? What is the trigger source? Can it be routed to both cameras? 

 

If the code works the way you want it to, there is no problem in replicating it for a second system. It simply depends on the requirements. 

Patrick Corcoran
Application Engineering Specialist | Control
National Instruments

0 Kudos
Message 2 of 11
(4,823 Views)

the triger is an external triger generated by BNC 2121. the triger signal is can be routed to both cameras. (i checked with osciloscope). but i still have problem with generating the VI

0 Kudos
Message 3 of 11
(4,683 Views)

inubus,

 

You should be able to synchronize the code you have right now (which works with a start trigger) with another set of code for the second board. There is an example that you should look at; this synchronizes a grab on two different boards. HL Grab with two boards.vi. You can search for this example using the NI example finder: Help>> Find Examples...:: Click on the Search tab, and select descriptions from the pull down (keywords by default). Type the name of the VI and the example should come up. 

If you can't find this example I have a screenshot of the block diagram.

2010-12-22_160413.jpg

 

 

Alternatively you could wire the trigger into both cards and copy of what you have already written as Patrick mentioned (just changing some camera aliases) without any problems. 

Hope this helps. 

 

<Joel Khan | Applications Engineering | National Instruments | Rice University BSEE> 


0 Kudos
Message 4 of 11
(4,673 Views)

is there any minimum computer specification to grab a pair of image syncronizely and continously?because there is like '"bottleneck" when 2 input image come together to the computer cause my computer not responding anymore

0 Kudos
Message 5 of 11
(4,615 Views)

Its odd to have issues with bottlenecking when it comes to Vision SW and programing. The reasoning behind this is because data transfers are done via reference passing.

 

What are you computer specs and OS?

 

<Joel Khan | Applications Engineering | National Instruments | Rice University BSEE> 


0 Kudos
Message 6 of 11
(4,599 Views)

i am using Windows XP

my computer spec is Pentium 4 2,7GHz with 512 MB RAM

0 Kudos
Message 7 of 11
(4,592 Views)

Inubus,

 

If you have not modified the functionality of the VI I posted here I don't see why you would be seeing performance issues from a software standpoint. 512mb of memory is a low amount of memory especially if you have other applications running on the machine which could be reducing the memory available to labview further. 

You could try to minimize the memory consumption of the VI by deleting the 2 image displays and recording the speed of the loop with the index output. See if that makes any difference.

 

Is it possible for you to try this on a newer machine?

 

<Joel Khan | Applications Engineering | National Instruments | Rice University BSEE> 


0 Kudos
Message 8 of 11
(4,573 Views)

i will consult with my advisor if there is a chance to run it with newer machine

anyway, this is my VI that should be can captured image from external trigger. but this is for one camera only.

is it correct if i just copy paste this VI to make it can capture image from two cameras syncronousyl with the one source external trigger?

i accept any suggestion to make it work

 

thx

0 Kudos
Message 9 of 11
(4,504 Views)

Hi

As far as i did is i can trigger each camera with one trigger, so i have to triger twice to capture image from two camera.

But all i want is one trigger can capture the image from two cameras at the same time.

I can't find example that explain so

any sugestion to help me please?

0 Kudos
Message 10 of 11
(4,377 Views)