ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronization between analog input and output using LabVIEW with DAQMX

Hello Everyone

 

 I am trying to synchronize the analog input and analog output with out any phase difference. I am using NI 9056 c RIO in RT DAQmx Mode and i am using c series modules of NI 9264 for generating analog output and NI 9205 for reading the generated analog input. Here i need to generate two signals one signal is having a phase shift of 0 degrees at channel 0 (AO0)of NI 9264 and reading the signal back by using NI 9205 CH 0 (AI0) and another signal having a phase shift 90 degrees at channel 1 (AO1)  and reading back the signal by using NI 9205 CH 2 (AI 1). Here i am a clock that is available in the c RIO 9056 for syncing both the signals. when i click on start sometimes both the signals are coming without any phase shift error but some times the phase is varying.

 

I would appreciate if these problems can be sorted out. Thank you everyone.

Download All
0 Kudos
Message 1 of 2
(961 Views)

You need to route the timing signals between the tasks to synchronize them.

See Signal-based Synchronization of Analog Input C Series Modules with NI-DAQmx in LabVIEW

If the sample rate for both tasks is the same, Sample Clock Synchronization is the easiest approach.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 2
(937 Views)