I have spent many hours trying to fix this, and none of the solution that I have tried have worked. I have done the math to determine the constant phase shift that occurs due to the single A/D multiplexing 8 different channels using this guide:
http://www.ti.com/lit/ug/tidu427b/tidu427b.pdf
I am not using an NI DAQ. I am using the USB-231 from Measurement Computing. Here are the specs for the card:
Resolution: 16-bit
Sample Speed: 50kS/s
AI channels: 8 RSE, 4 DIFF
Analog Input Range: +/- 10V
Code Width: 305uV/LSB
According to the above guide, The phase shift due to multiplexing is:
phi_mux = (f_in/f_ADC)*360 = (60Hz/50kHz)*360 = 0.432 degrees
and so the maximum phase shift I should see from channel 0 to channel 7 is 7 times this value:
phi_mux_MAX = 7*phi_mux = 7*0.432 = 3.024 degrees.
Since I will be sampling 8 channels “simultaneously”, each channel must be sampled at 6.250kS/s (50k/8) . And if I want to view up to 2.5 periods of a 60Hz waveform, then I will need to sample 260 samples (6250k*41m). I have these parameters entered on the front panel.
I wanted to test and see if I could observe the phase shift values that I calculated above, so I measured the exact same waveform on all 8 channels and calculated the frequency, amplitude and phase of all 8 channels to observe the phase shift due to multiplexing(front panel.png). The measured values were almost spot on the the calculated values. Because of this, I was able to correct the phase shift NUMBER, but I don’t know how to correct it GRAPHICALLY.
I have seen so many solutions that state to fix this by determining what the fixed phase shift is and correcting for it. But I do not know how create a new graph with the corrected phase shift (mux phase.png).
Ultimately, I want to have a waveform graph that will display all 8 waveforms with the inter channel phase shift compensated. I need this to be very accurate so I can measure the phase shift of voltage and current waveforms within 1% accuracy.
How do I correct this graphically?
Attached is the VI im using (MultipleChannel.vi) It may not be much help since im not using an NI daq card.
Thanks,
JM