LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Analog Output and Single Digital Pulse synchronized on NI-USB6221 and NI-DAQmx

Hi all!

 

I am quite new to Labview so I would be very pleased if someone could assist me with my problem.

 

I am trying to synchronize a rolling shutter on a CMOS camera with a 1d laser scanning mirror.

 

The scanning mirror is driven by a ramp voltage that is generated by a sawtooth wave and send via the analog out.

The exposure of the camera is triggered by a TTL pulse. This is generated on one of the digital lines of my usb6221.

 

So far I figured out some of the synchronization features of DAQmx. I tried to follow the examples on this page,

https://www.ni.com/en/support/documentation/supplemental/21/m-series-synchronization-with-labview-an...

 

and tried to implement a shared start trigger for the digital pulse and the analog out. As far as I understod,

the "get terminal name with device prfix.vi"  tells the start trigger, that it shall initiate the start task.vi of the digital out.

 

Would this work so far? How accurate is the synchronization, can the time difference of the two outputs be below 1 us?

On what is the the triggering based? I mean, does it somehow utilize the internal 80Mhz timebase?

 

Thanks a lot in advance!

 

eloign 

Download All
0 Kudos
Message 1 of 2
(2,402 Views)

Hi eloign,

 

did you already try it with your hardware? 

 

Here are some links about synchronization that may deliver you some detailed information:

 

https://www.ni.com/en/support/documentation/supplemental/10/synchronization-explained.html

 

https://www.ni.com/docs/en-US/bundle/usb-621x-manual/resource/usb-621x-manual.pdf

 

https://www.ni.com/en/support/documentation/supplemental/06/m-series-frequently-asked-questions.html

 

Regards,

 

Michael

NIG

0 Kudos
Message 2 of 2
(2,366 Views)