Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Analysis

Circuit diagram:
Lockin Amplifier:
Lockin Output & absolute dv/dt:
Grid Disconnected at 0.3sec

5th Harmonic Mag = 1v

Settling time from point of disconnection of


grid = 0.17sec
MATLAB Plot (With Zg)
STEP RESPONSE

RAMP RESPONSE
MATLAB Plot (Without Zg)
STEP RESPONSE

RAMP RESPONSE

MATLAB Code
clear;
clc;

Li = 0.89e-3
Lg = 0.20e-3
C = 30e-6
Rd = 0.8

Rl = 4.88

Lx = 0.9e-3
Rg = 0.4

%*************************System Transfer Function*********************************************%

s= tf('s')

num1 = [Li*Lg*Lx*C*Rl Rl*C*Li*Lg+Rl*C*Rd*Lx*Li+Rl*C*Rd*Lx*Lg Rl*Rd*Rg*C*Li+Rl*Rd*Rg*C*Lg+Rl*Lx*Li+Rl*Lx*Lg Rg*Rl*Li+Rg*Rl*Lg 0]


den1 = [Li*Lg*Lx*C Li*Lg*C*Rl+C*Li*Lg*C*Rg+C*Rd*Lx*Li+C*Rd*Lx*Lg Rd*Rl*C*Li+Rd*Rl*C*Lg+Rd*Rg*C*Li+Rd*Rg*C*Lg+Lx*Li+Lx*Lg
Rl*Li+Rl*Lg+Rg*Li+Rg*Lg+Lx Rg+Rl]
sys1 = tf(num1,den1)

%*******************Without Zg*********************************************

num2 = [Rl*Li*Lg*C Rl*Rd*C*Li+Rl*Rd*C*Lg Rl*Li+Rl*Lg 0]


den2 = [Li*Lg Rd*C*Li+Rd*C*Lg+Li*C*Rl Li+Lg+Rl*Rd*C Rl]
sys2 = tf (num2,den2)

%***************************LPF 4th Order******************************************************%


LPF = tf ([0 2*3.14285*10], [1 2*3.14285*10])
LPF_4order = LPF^4

%************************Final Tf*********************************%
sys3 = tf (LPF_4order*sys1)
sys4 = tf (LPF_4order*sys2)
%******************PLOTS***********************************************%

subplot (2,1,1)
%t = 0:0.0:0.25
step (sys4);
title('Step Response')

subplot(2,1,2)
%t = 0:0.0:0.25
step (sys4/s);
title('Ramp Response')

%subplot(3,1,3)
%impulse(sys2);
%title('Impulse Reponse')

%*********************END OF CODE*************************************************%

You might also like