Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Howto Generate a Pulse for each Image Grabed?

Solved!
Go to solution

Hello

 

i am using a 7852DAQ card and a PCIe1429 framegrabber.

In the momment i am grabing images at 20Hz with the PCIe1429 and measure analog values at 1kHz with the 7852DAQ Card.

 

Now i would like to sychronize this two measurments, that i know which analog value is related to my image.

I think the best way to get a good synchronisation is to generate a signal with each frame that is captured. The fastest way of communication between the two cards should be the RTSI trigger lines.

 

With the IMAQ Generate Pulse3 VI i was able to generate a continous pulse signal an read it with mit DAQ card but that is not what i want.

 

Then i tryed the IMAQ Trigger Drive2 VI.

I did IMAQ Init and IMAQ Create, IMAQ Grab Setup then the IMAQ Trigger Drive2 VI and then a while loop with IMAQ Grab Acquire.

My Configuration is Trigger Type "RTSI", Trigger Number "0", Trigger drive "Vertical Synchronisation Signal" and Trigger Polarity "High True"

 

My while loop has a wait 50ms in it so i should grab a image every 50ms and also get a pulse every 50ms. But that isn´t happenig. The pulses are comming about every second. When i use Trigger Drive "Frame Start" i get the same Behavior.

 

So what is the problem? Do i understand the functionality of IMAQ Trigger Drive2 VI wrong?

 

Thanks

 

0 Kudos
Message 1 of 2
(3,427 Views)
Solution
Accepted by westgate
Hello Westgate,


have you tried using the "Frame Start" or "Acquisition in Progress" trigger drive instead of the "Vertical Sync"?

Additionally, you might want to verify your FPGA code running on the R-Series DAQ Board: how are you scanning the trigger line in FPGA, how wide are the time intervals to detect the pulse, ...?

Best regards,
Sebastian



0 Kudos
Message 2 of 2
(3,412 Views)