LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Phase Delay

Hi Lynn,

I am trying to measure very small phase values between a stimuli and response.

I have tried all networks and have not noticed any response from channel delays.

So it got me interested why isn't it showing the inter-channel delays.

Of course this is good for me!

I remember when I saved the two signals in a text file and then measured the phase difference between them, there was a large inter-channel delay.

But then when files are saved - signal inegrity is lost as all signals are referenced from t = 0.

So I measured immediately after acquisition and it did not show any inter-channel phase delays, exactly what you postulate over there.

With this I have been able to veirfy some RC networks and a simple circuit consisting of two resistors. 

Feeding the voltages directly to two differential input channels gave phase difference of zero. This is exactly what I want.

I have also been able to verify a lot other networks, each is absent from the inter-channel delays. So experimental evidence is sound - but am curious how this is "cleverly" avoided in the extract tones subVI. I split the two signals and send them to separate extract tones subVI.

 

0 Kudos
Message 11 of 20
(1,903 Views)

Here is a quick test vi for the extract single tone detection

Play around with the noise , samplerate , number of samples and phase(s)

The histogram will build up if you choose 'run continously' , not nice but quick&dirty 😉

Clipboard01.png

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 ǝɥʇ'


Message 12 of 20
(1,895 Views)

Hello Henriks,

thanks for the quick example. I dont have 2011 though, could you please downconvert it?

I will only be able to look at it at work - I am going tomorrow.

But the attached image answers some important characteristics as I see it.

As we see - the extract tones does not consider the start phase (3deg). It fundamentally looks at the delay (0.03deg)

and thus computes the delay as 0.03 deg, and not 3.03deg.

I have not gone into the mathematics of it, but it appears it does not get affected by the start phase?

All in all, I have done numerous verifications so I am flowing with it. I just wanted to see how does extract tone avoid this pitfall.

0 Kudos
Message 13 of 20
(1,887 Views)

Ah

I forgot.

After acquiring the two signal via DAQmax, I send it through a "extract portion subVI". This extracts waveforms after a small delay (200 ms) to account for delayed reading after write (using a sequence). Will this be making the difference? Something like doing the job of aligning waveforms?? It just clicked to me now.

0 Kudos
Message 14 of 20
(1,885 Views)

What version do you have?

Can you send your vi? Or the part from capture to phase detection?

 

 

and the extract tone does consider the start phase,  what is displayed is the difference in phase (defined  30m deg and measured 0.0300003 deg in the pic 😜 )  and what is shown in the histogram is the difference (or error) of the algorythm due to noise between the analytical signals and the result of the two tone extractions from reference and delayed signal.

 

 

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 15 of 20
(1,880 Views)

Hi Henriks,

Now I am going to make a short trip to work!

I want to see whether its the extract portion of signal express VI that is making the difference.

I believe it is making a realignment effect, thus the removal of phase delays. What do you reckon?

Will message you parts of my codes when am at work.

 

0 Kudos
Message 16 of 20
(1,877 Views)

Lynn and Henriks.

Attaching here a part of the code showing the acquisition and computation of phase difference.

Checked with and without the extract portion of signal VI. No difference.

 

Henriks, I am using LabVIEW 2009 SP1...my bad...will check the example you attached.

0 Kudos
Message 17 of 20
(1,873 Views)

If you post a picture do it in the correct format!!

Just rename a 2MB BMP to jpg is rood !!

 

I will have a look if you post it as a PNG (best for grafic) or jpg

Even better post the vi (probably smaller)

 

Sorry

 

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 18 of 20
(1,859 Views)

here is a 2009 version

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 ǝɥʇ'


Message 19 of 20
(1,857 Views)

Hi Henriks,

Sorry!

I will pm you the section. 

Hope you dont mind.

0 Kudos
Message 20 of 20
(1,852 Views)