01-08-2014 03:57 PM
Hi,
I would like to simply compute the phase shift between a sinusoidal waveform and a square one. Between two sin-s I can compute, but I have no idea how to do that with a square waveform.
Thanks,
Ussr123
01-08-2014 03:59 PM
Maybe getting the fundamental of the square wave? and computing phase shift between the initial sine wave and that one? I am not sure if this would help. But I still don t know how to filter out the fundamental.
I appreciate any help.
Ussr123
01-09-2014 06:41 AM - edited 01-09-2014 06:45 AM
Hi there,
the easiest way is to use the ExpressVIs.
But you are only allowed to use the ExpressVI "Tone Measurements" if you have enough periods of the square wave, because it computes the phase with FFT.
An other possibility is to use the spectrum analyser VI as used in the attached exsample.
Greetz
Branni
01-09-2014 06:44 AM
Hi,
unfortunately I cannot open it, I have another version of LV. Could you make a screenshot of it?
Thank U,
Ussr123
01-09-2014 06:49 AM - edited 01-09-2014 06:51 AM
Sure!
Sorry for the german ExpressVIs, but I think you could figure it out with the symbols. 😉
01-09-2014 04:14 PM
If your signals are clean enough (large signal to noise ratio), just find the times of zero crossings. Then calculate the period and the phase shift from those times. Using Threshold 1D Array is a simple way to do this. If one or both of the signals does not cross zero, the threshold can be set to the midpoint between the maximum and minimum values in the array.
Lynn