LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to find phase angle using labview

Hi all,

        i am doing a project using myRIO. I have given analog inputs and i found out voltage and current of R and RL load. can any one tell me how to find out phase angle between voltage waveform and current waveform using labview. please any one help me.

                                                                               

0 Kudos
Message 1 of 8
(7,608 Views)

Hi, you can use extract single tone VI for each signal, then you just substract both phase angles.

 

http://digital.ni.com/public.nsf/allkb/F4BB644ECCA595D886256FFE00722E29

 

 

0 Kudos
Message 2 of 8
(7,597 Views)

I tried using Extract signal tone but doesn't work it shows output value as NaN. I have tried different methods for finding phase angle but none worked out. please any one help me figure out this. i have to find phase angle for square wave. please any one help me.

0 Kudos
Message 3 of 8
(7,428 Views)

Hi swathik,

 

generic answer to your generic problem description: attach a VI with some sample data!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(7,406 Views)

I had the same issue, the extract single tone vi didnt work. I then opened the "extract single tone.vi" by double clicking on it and copied and pasted the whole block diagram contents onto my block diagram and it worked. Give this a try and it might also work for you. 

0 Kudos
Message 5 of 8
(7,299 Views)

@santamaria wrote:

I had the same issue, the extract single tone vi didnt work. I then opened the "extract single tone.vi" by double clicking on it and copied and pasted the whole block diagram contents onto my block diagram and it worked. 


That makes no sense at all!

 

Can you describe what did not work and what you did. (maybe attach the code before/after).

The same code gives in the same result unless something else is going (e.g. race condition, miswire, mistake, etc.)

0 Kudos
Message 6 of 8
(7,286 Views)

This also didnt make any sense to me. But thats what made my code work. I tried all the different apporaches using fft and correlation for 2-3 weeks searching on internet , posting on different forums asking different ppl around me. And i just gave this a try and it worked. I dont know how. Smiley Surprised  Smiley Happy

0 Kudos
Message 7 of 8
(7,250 Views)

this only worked when the signal was given from the function generator. I haveyet to  figure out to find the phase when the signal is given from mics. Smiley Frustrated

0 Kudos
Message 8 of 8
(7,239 Views)