Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

cdaq synchnonisation

I am fighting cDAQ signal routing, which is taking a lot of time, as I can’t find relevant help or examples. Is it possible to find out from NI the solution to my requirements:

 

I have a cDaq 9184 chassis, equipped with:

1 x  Ni 9205 32-channel analogue input module,

1 x NI 9401 8-channel Dig Input Output

1 x  NI 9263 4-channel analogue output.

 

  • I need to synchronise a GigE line-scan camera with the analogue inputs (1 image line per ADC scan, at a frequency of 3250Hz). This will be done by an RS422 signal  from one output of the NI9401, via an RS422 driver.
  • I need to use a counter on the NI9401 to accurately measure the period of a pulse train from an external speed sensor (low frequency,10 to 20Hz, 1 counter)
  • The analogue outputs from the NI-9263 will be used for positioning actuators, during a set-up process.

 

Ideally, the ADC scan trigger signal should be routed via the NI9401 to output a square wave synchronisation pulse to the camera with 1:1 mark to space ratio. ( (I have previously  synchronised an ADC and a Cameralink camera using  a Camera link frame grabber and an  M-series card with a  RTSI bus).Alternatively I could use the Ni9401 output signal to trigger the 9205

Are thyer any cDaq examples of this?

As close as I Have got to this, is to configure 2 counters on the NI-9401, one to output the pulse train at 3250Hz, and the other to measure the speed sensor frequency.  The speed of the NI 9220 is also set at 3250Hz, and if the same  Cdaq clock is used, they should be synchronised(?). The appear to be conflicts between setting up the 2 counter functions, but after half a day of trial and error, that seems to work, but is not ideal.

Is there a better solution? By the way I am using LabVIEW 2009, as we have to maintain continuity with previous customers, with NIDaq 9.6, Windows XP embedded or Win 7 Pro.

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

Hi Peter,


Could you please clarify the first bullet point a bit further? Also where is the NI 9220 coming into the equation?


If you take the pulse train at 3250Hz and split it into the PFI line of the chassis, you could use this for the sample clock of the 9220. By default, the 9220 and 9401 will use different timing sources (digital versus analogue).

 

For some more synchronization basics refer to:

https://www.ni.com/en/support/documentation/supplemental/06/timing-and-synchronization-features-of-n... 

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