LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Quadrature signal generation from a sine wave

Hello

I am trying to build the single phase PLL model (attached JPEG has the reference image of single phase PLL) in LabVIEW. I generating the sine waveform and trying to do the operations on waveform. As shown in the attached image, the quadrature signal of the sine wave has to be generated. Can anyone please let me know, how to generate the quadrature signal in data type double. I tried using the hilbert transform, but it is using the data type array.

 

(Note: for testing the pll algorithm I used cosine wave, as the algorithm is working fine, I want to replace the cosine wave generator with quadrature signal generator.)  

 

Thank you in advance

Ram 

Using LabVIEW 2014 and 2015. 

 

Download All
0 Kudos
Message 1 of 7
(3,393 Views)

There is no such thing as generating a quadrature "signal".  When something is in quadrature, there are two signals.  So just generate like you are doing now.  A sine and cosine wave based on the same amplitude and frequency.  Or two sine waves of the same amplitude and frequency with the second one having a 90° phase shift.

0 Kudos
Message 2 of 7
(3,345 Views)

Hello RavensFan

Thank you for replying to my post. I am sorry, I should have mentioned it clearly in the post. Actually I am acquiring the sinusoidal signal from the hardware chip to the LabVIEW. After acquiring the sinusoidal signal, I need to phase shift the acquired signal by 90 degrees. So in actual case I am not generating any signal, I am only acquiring sinusoidal signal.  Can you please suggest me any methods to phase shift the acquired signal. 

 

Thank you

Ram

Using LabVIEW 2014 and 2015

0 Kudos
Message 3 of 7
(3,308 Views)

I don't understand what you want in the end.

 

You acquire 1 signal.  (So that is real world showing up as data in LabVIEW)

You want to phase shift that 90°. (So that is manipulation of the data in LabVIEW)

Then you do what with that new signal?  Where do you use this newly modified data?

0 Kudos
Message 4 of 7
(3,302 Views)

Please see the attached image. My idea is to acquire the signal and find the frequency using that particular PLL.   I am acquiring the signal (V sin(wt+phi)), now I need to find the signal (V cos(wt+phi)) from the acquired signal to make the algorithm run.  

0 Kudos
Message 5 of 7
(3,298 Views)

Sorry, but that diagram means nothing to me.

 

What is the actual problem you are trying to solve?  You say "My idea is to acquire the signal and find the frequency"  which is stuff you can do in LabVIEW quite easily. 

 

Bringing some theoretical PLL algorithm into the seems like you are unnecessarily complicating the problem and trying to force LabVIEW to do things it wasn't really meant to do.

 

I'll leave it up to others to participate if they understand your problem.

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

Using a PLL will let you track the frequency and phase as they change.

 

An example that comes to mind is if I want to synchronize to line voltage and co-generate two phases.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 7
(3,283 Views)