LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronization between c-series AO (9263) and AI (9201) modules

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(2,504 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,495 Views)

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

Download All
0 Kudos
Message 3 of 5
(2,484 Views)
Solution
Accepted by topic author ElliotYY

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.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,480 Views)

Hi GredW,

 

Yes, it is working now by using start triggers. Thanks for all your helps!

 

Elliot

0 Kudos
Message 5 of 5
(2,458 Views)