07-08-2024 07:05 PM
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.
07-08-2024 08:22 PM
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.