LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronize two DAQmx tasks on different cards with a counter

Hi,

 

I'm trying to synchronize two DAQmx (PCI-6133 and PCI-6733) cards with a counter. The cards are connected with a RTSI cable. I'm using the 20MHz reference as well as the counter output of one card to synchronize an AI to an AO task. Both tasks are triggering on the counter and use sample clocks based on the common reference.

 

The synchronization works fine when run the VI once. However, when I try to put the code in a loop and use it for a synchronized frequency sweep, the synchronization works only on the first iteration.

I've routed the counter output to a PFI DO and confirmed with a scope that the counter frequency gets updated within the loop. There is a glitch at the beginning to the signal, but I think this might be related to the routing. As the problem persists when I add lots of delay after starting the counter, I think the problem has to be somewhere else.

 

I also noticed that the problem does _not_ occur if I do not change the frequencies.

I've attached a minimal version of the VI.

 

Any help is greatly appreciated.

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

There is a board available only for 'Multifunction DAQ'. You might want to post your query there as well.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


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