02-11-2016 10:26 AM
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.
02-11-2016 10:54 AM
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
03-08-2016 12:36 AM
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.
03-08-2016 02:03 AM
03-20-2016 11:46 PM
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.
03-20-2016 11:55 PM
@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.)
03-21-2016 11:37 PM
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.
03-22-2016 03:54 AM
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.