09-02-2021 12:37 PM
Hello. I am a complete labview beginner and want to calculate the phase difference between two signals. I have a two channel waveform and use the "Extract Single Tone Information VI" to obtain the phase of each signal respectively. The phases i get are highly unstable and i notice both signals are ''scrolling" from side to side in the signal graphs. Is this the reason why the phases are so random? How can i fix this?
The signals on channel 0 and 1 look like this
09-02-2021 01:20 PM
Are you measuring the two waveforms using a simultaneous sampling DAQ card? If not, there will be a small delay between them introduced by the DAQ card as the single ADC measures each waveform.
09-02-2021 02:09 PM
I am using an Ettus Research X300, which looks like this. Is this layout part of the problem?
09-02-2021 04:16 PM - edited 09-02-2021 04:25 PM
Is there a dominant single tone that has the same frequency in both channels?
What is the purpose of the FOR loop?
09-03-2021 04:22 AM
Yes, both channels have same frequency
09-03-2021 04:44 AM - edited 09-03-2021 04:47 AM
You want the phase in the RF part or the pulse part?
second wfrm passed a high pass?
the DC part and groupdelay is tricky...
I would try : Both channels pass a high pass filter with same parameters (same delay) and use cross correlation to measure the groupdelay.
the phase of the RF in the pulse seems to be more than one periode (360°) of the groupdelay 😉
09-03-2021 06:26 AM
@Fluktuation10111 wrote:
Yes, both channels have same frequency
Do you know that frequency exactly?
Your graphs are useless to troubleshoot anything, because the resolution is insufficient. Obviously you have three square pulses of some high frequency signal. Are you interested in the phase difference of the high frequency signal for each of the square pulses? Is that phase shift constant across the entire trace (all three pulses)? Or are you interested in relative time shifts of the square pulses?
Can you attach a simple VI that contains some actual data? What result do you expect?