How to Synchronize NI 9361 Counter Input Task and C Series DSA Module

Updated Mar 30, 2023

Environment

Hardware

  • NI-9202
  • NI-9218
  • NI-9225
  • NI-9227
  • NI-9229
  • NI-9230
  • NI-9232
  • NI-9234
  • NI-9235
  • NI-9236
  • NI-9237
  • NI-9238
  • NI-9239
  • NI-9242
  • NI-9244
  • NI-9246
  • NI-9247
  • NI-9250
  • NI-9251
  • NI-9361

Driver

  • NI-DAQmx

I want to synchronize my Counter Input (CI) task of NI 9361 with my Analog Input (AI) task of a DSA (Dynamic Signal Acquisition) module, such as NI 9234. How can I achieve this synchronization?

DSA module such as NI 9234 uses its internal clock for sampling, so you need to use this sample clock or same timebase for CI frequency task in order to synchronize two tasks.

You can use Sample Clock:Source property under DAQmx Timing property node to share sample clock between NI 9361 and DSA module, or Sample Clock:Timebase:Source property to share the same timebase. If you want to use timebase sharing, you also need to set the same sampling rate using SampleClock:Rate property. 

Note that you must also configure the trigger so that the start timing of the acquisition is aligned between two tasks for complete synchronization.

Sharing a Sample Clock

Sharing the Timebase:



Note: This images is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.