Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

synchronization of analog ouputs and counter inputs

HI
I want a code where I can synchronize two devices, PCI 6602  and PCI 6221
I need to use 2 counter timers on 6602 to receive counter inputs and use 2 analog ouputs on 6221 to supply voltage (0-10 V)
and I need to synchronize the two.
I have a code to do them separately but I want to synchronize them.
I am attaching the code for synchronizing two counter timers on 6602. The code works fine most of the time, however on some occasions, even if no digital signal is connected to the counters, I keep getting some spikes in the signal acquired.
When I explored into it I saw the spikes were 2^22 (wierd!!!)
I am attaching the code for the 2 counter timer sync.
I really need to correct this and also get sync with 2 AOs on 6221
I am just worried how many loops will be required for that
0 Kudos
Message 1 of 2
(2,902 Views)

Hello,

The best way to understand how you can synchronise two task together from the same device or from several devices. It is to have a look on the web page Getting Started with NI-DAQmx. On this wb page there are all the information you need.

The link that explains the synchronisation between task is: M Series Synchronization with LabVIEW and NI-DAQmx

Best regards
Nick_CH

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