Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Counters synchronization in daqmx

Hello Everybody,
I'm rewriting custom software in LabView from DAQ to DAQmx. I have the following problem:
I need Ctr0 (at low frequency) to trigger "packets" of pulses on Ctr1 (that operates at high frequency). I'm using Pause,Trigerr option on Triggering node. Since pulse trains on the Ctr1 and Ctr0 "drift" with respect to each other that causes idle state of the Ctr1 oscillate between 0 & 1 - depends in what state it was left after Ctr0 pulse.

Does anybody have any idea how to overcome this problem?
I tried to synchronize start of both counters by triggering them from the pulse of the third counter but it does not help. Also, it is impossible to use Start.Trigger opting  with Pause.Trigger optin on the same counter.

Here is a VI that demonstrates the problem.
I'm using NI 6052 board with 2 counters. Ctr0 Out is wired to PFI4 (Ctr1 G)

Thank you in advance.
Pta.
0 Kudos
Message 1 of 2
(3,330 Views)
Ok, it seems that I fixed the problem.
In case it will be useful for the others, there is a solution:
If you are trying to replicate Finite Pulse Train Int (DAQ-STC).vi in DAQ/Examples you need to use just one counter in DAQmx in Finite/Retriggerable mode. It eliminates necessity of 2nd counter and Pause Trigger option so there is no problem with counters drift.

I have wasted several days of my time on this simple task.
0 Kudos
Message 2 of 2
(3,314 Views)