Professional Documents
Culture Documents
RL-load
Figures and Results
io
M-File
Simulink
Figures and Results
General Program of Singl-phase uncontroller
rectifer R-load
clc,clear
global phi Alfa_rad for i=1:length(wt)
%% Enter Data if wt(i)<Alfa_rad
R=input('Enter ehe value of the load vo(i)=0;
resistance (ohm):'); io(i)=0;
L=input('Enter the value of the load vscr(i)=vs(i);
inductance (H):'); elseif wt(i)>Alfa_rad&& wt(i)<=B
Vs=input('Enter the value of the supply vo(i)=vs(i);
voltage (rms):'); vscr(i)=0;
f=input('Enter the supply frequency io(i)=Vm/Z*(sin(wt(i)-phi)-
(Hz):'); sin(Alfa_rad-phi)*exp((Alfa_rad-
Alfa=input('Enter the firing angle wt(i))/tan(phi)));
(degree):'); else
w=2*pi*f;Vm=sqrt(2)*Vs;XL=w*L;Z=sqrt(R^2+XL vo(i)=0;
^2);phi=atan(XL/R); vscr(i)=vs(i);
Alfa_rad=Alfa*pi/180; io(i)=0;
%% Calculate Beta end
B=fzero('CRL_B',pi); end
%% Draw Waveforms
wt=0:1e-2:2*pi;
vs=Vm*sin(wt);
vR=io*R;
vL=vo-vR;
subplot(221),plot(wt,vs)
subplot(222),plot(wt,vo)
subplot(223),plot(wt,vscr)
subplot(224),plot(wt,io)
RL-load
End Lecture (1)