LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Single phase PLL

Hello

I am trying to build the single phase PLL model (attached JPEG has the reference image of single phase PLL) in LabVIEW. I am using a sine wave generator to generate the waveform and trying to do the operations on waveform. Can you please give me suggestions of building the model. Is my approach correct on using the waveform directly for analysis?

 

Thank you in advance

Ram 

 

Download All
0 Kudos
Message 1 of 2
(1,807 Views)

Hi

    Your PLL code needs to run on a sample by sample basis, not as you have implemented at the waveform level. What you need to do is to place all your processing code inside a loop and feed the loop with the auto-indexed data array of your waveform (Y). That way your PLL calculation will use input sample Y(n) in combination with the previous processed value, say Z(n-1) to calculate the new processed value Z(n)  and so on...

 

    Use the Get Waveform Components primitive to extract the Y array

image.png

0 Kudos
Message 2 of 2
(1,765 Views)