image thumbnail

PLL_mfile_cal

version 1.2.0.0 (6.17 KB) by Aubai
Phase-locked loop.m this is an mfile to calculate the same outputs of the PLL simulink block.

985 Downloads

Updated 10 Feb 2014

View License

Use this file to get the frequency of an input signal and to generate a pu sine and cos signal with the wt from your input signal it can do the same function as the PLL block in simulink but without using an PI controller (canot be used online) or also can build up the Wt signal for better accurcy from the Zerocrossing of the input signal.
Use the option = 1 to do the same steps in PLL simulink block or option = 0 to build up your own Wt signal (R_Z_G) from the zerocrossing inofrmation

Cite As

Aubai (2021). PLL_mfile_cal (https://www.mathworks.com/matlabcentral/fileexchange/45039-pll_mfile_cal), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!