04-02-2019 03:53 PM
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
04-11-2019 02:50 AM
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