Code covered by the BSD License  

Highlights from
PLL_mfile_cal

5.0

5.0 | 1 rating Rate this file 22 Downloads (last 30 days) File Size: 6.17 KB File ID: #45039

PLL_mfile_cal

by

 

15 Jan 2014 (Updated )

Phase-locked loop.m this is an mfile to calculate the same outputs of the PLL simulink block.

| Watch this File

File Information
Description

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

Required Products SimElectronics
Simscape
Simulink
MATLAB
MATLAB release MATLAB 8.2 (R2013b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
11 Feb 2014 Obay  
Updates
29 Jan 2014

the variable option was added to allow the user to choose between doing the exact steps like the matlab PLL simulink block (option = 1) or to build up the Wt signal from the zerocrossing(option ~= 1)

10 Feb 2014

In this update the cumtrapz.m function in matlab was updated into cumtrapzt.m function in order to get the same effects of the (1/s) Intgrator block of simulink (Looking at point t-1 from simulation time t).

Contact us