Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

phase difference calculation myrio

Hi,

 

I am trying to find phase difference of the sine wave of 1kHz acquired from microphones. I am successfully able to calculate the phase difference from the sine waves acquired through function generator but when i connect myRIO to mics, the data is successfully acquried and displayed on the graphs but the phase difference keeps varying. I have attached my vi also. Pls help.

0 Kudos
Message 1 of 4
(4,017 Views)

It’s very possible that the behavior you’re seeing is expected. The signals recorded by the microphones will be slightly different due to varied distance from the source of the sound. Even if you had the microphones very close together they still may pick up slightly different signals depending on their angle.

 

How big is the phase difference that you’re seeing? Does that difference change when you move the mics closer together or further apart?

0 Kudos
Message 2 of 4
(3,994 Views)

I havent checked the phase by changing the distance between the microphones.

Is there a way to keep the display constant, the value keeps changing by +-5 degrees ? Or can u guide me how can i take the average of values. I tried the build array function and then used the mean block. But it doesnt seem to work.

0 Kudos
Message 3 of 4
(3,981 Views)

If you want to take a running average you could use the Mean Point by Point VI. Take a look at the documentation for it here. You can just input the phase difference and a sample length for however many points you want to maintain an average.

Message 4 of 4
(3,973 Views)