10-14-2019 02:14 PM
Hi all,
I am working on yynchronization between an AO module (NI 9263) and an AI module (NI 9201). I followed the example below, and it does not working.
http://www.ni.com/tutorial/5376/en/#toc1
Could anyone please give me some hints or suggestion?
Thanks a lot
Elliot
Solved! Go to Solution.
10-14-2019 02:19 PM
Hi Elliot,
@ElliotYY wrote:
I followed the example below, and it does not working.
What is "not working"? Which error do you get?
Why can't you start two DAQmx tasks inside that sequence frame?
10-14-2019 02:45 PM
Hi GerdW,
Please see my attached VIs. I also physically connected ai0 and ao0, because I want to monitor if any time delay between two signals.
1) I tried start two DAQmx tasks inside sequence frame (SynchronizationStart.vi). But they are not perfectly starting at same time (see time delay between two plots at front panel)
2) I also tried another approach (Synchronization.vi) similar to the example page (http://www.ni.com/tutorial/5376/en/). But delay was still here.
Regards,
Elliot
10-14-2019 02:55 PM - edited 10-14-2019 02:56 PM
Hi Elliot,
as long as you basically rely on the execution speed of some software function calls you will not get very accurate synchronization.
What about using start triggers for both tasks?
(LabVIEW comes with a huge example VI library, there are also example VIs on DAQmx and triggers.)
10-14-2019 04:17 PM
Hi GredW,
Yes, it is working now by using start triggers. Thanks for all your helps!
Elliot