From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the phase difference between many signals by using python?

I'm a new user to python. For part of my project, I have 10 signals which more or less are in the form of "sine wave" with the same frequency and amplitude.
 
I plot each one of them separately and it looks good.
 
But, when I wanted to average them, I found some strange effect on each other and I supposed that there is a Phase difference between them.
 
Can anyone help me to determine the phase difference between them? any suggestions?
 
Thanks
0 Kudos
Message 1 of 2
(2,813 Views)

A sine approximation is a linear LSRME fit of a*sin(wt)+b*cos(wt)  and give you amplitude and phase.

Don't know, but I wouldn't wonder if there are already python implementations ...

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 2
(2,763 Views)