LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Export continous trigger synchronous with data acquisition

Hi, 

I am acquiring analogue voltage from a UTM at a certain frequency. I am acquiring some 100 samples at a sampling rate of 1000Hz and then averaging the array to achieve 10fps of the data acquisition rate. 
I need to send a trigger signal for one camera (Basler Ace, 75fps USB) through a GPIO-BNC cable. I want to trigger the camera at some FPS which is in relation to acquisition frequency. If I set the fps in the camera software, it changes with time due to internal issues. 
The camera images should be in synchronous with the acquired data and half or quarter (as set) of acquisition frequency. 

How can I send a trigger chain in synchronous with acquisition rate? 
I am using USB 6251 multifunction DAQ.

 

Thank you

0 Kudos
Message 1 of 2
(1,182 Views)

You can start from the snippet below.  It starts to configure a "clock divider" CO task which divides down the AI sample clock by a factor of 100.

 

There are 50 high ticks and 50 low ticks for a total divide-down factor of 100.  Further, the 'initial delay' is set at 50 ticks to place the very first pulse right in the middle of the interval represented by your first 100 samples.

 

You can vary these values as desired to divide down by a larger factor or shift the timing of the first pulse.   As the comment reminds, be sure to start the CO task *before* you start the AI task.

 

 

-Kevin P

 

divide-down pulse train.png

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 2
(1,121 Views)