Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
IndexTermsMatlab,SISOTOOL,Step,StepResponse,
TransferFunction,ElectricalNetwork
I. INTRODUCTION
Anelectricalnetworkisaninterconnectionofelectrical
components (e.g. batteries, resistors, inductors, capacitors,
switches)oramodelofsuchaninterconnection,consistingof
electrical elements (e.g. voltage sources, current sources,
resistances,inductances,capacitances).Anelectricalcircuitis
anetworkconsistingofaclosedloop,givingareturnpathfor
the current. Linear electrical networks, a special type
consistingonlyofsources(voltageorcurrent),linearlumped
elements (resistors, capacitors, inductors), and linear
distributed elements (transmission lines), have the property
thatsignalsarelinearlysuperimposable.Theyarethusmore
easily analyzed, using powerful frequency domain methods
suchasLaplacetransforms,todetermineDC response,AC
response,andtransientresponse.
ATransferFunctionistheratiooftheoutputofasystem
totheinputofasystem,intheLaplacedomainconsideringits
initial conditions and equilibrium point to be zero. This
assumptionisrelaxedforsystemsobservingtransience.Ifwe
haveaninputfunctionofX(s),andanoutputfunctionY(s),
wedefinethetransferfunctionH(s)tobe:
Y (s)
H ( s )=
X ( s)
Thetransferfunctiondescribesthebehavioroftheoutput
asafunctionoftheinputfrequency.Thisisusefulparticularly
in a linear timeinvariant system, where given some input
X(f),wecanfindtheoutputY(f)directlybyusingtherelation
Y(f)=X(f)H(f),whereH(f)isthetransferfunction.
>>step(sys)
This command will produce a series of step response
plots, all on the same figure.
SISOTOOL on the other hand provides the option of
inserting and adjusting the poles and zeros either graphically
or numerically; each mode having its own advantages.
Inserting them numerically is advantageous when precise
values are wanted (for example a pole at the origin for a
controller with Integral term). By inserting them (and also
moving them) graphically the user can perform adjustments
very quickly to see which controller configuration will be able
to let the root locus approximately pass through the desired
poles.
Root locus design is a common control system design
technique in which you edit the compensator gain, poles, and
zeros in the root locus diagram.
II. METHODOLOGY
Theteacheraskedtogenerateastepresponseofthegiven
electricalnetworkusingthestepcommandandSISOTOOL.
Inordertogetastepresponse,thetransferfunctionmust
besolvedfirstfromthegivenelectricalnetwork(Figure1&
Figure4)andencodeitinthecommandwindow.
After encoding the transfer function, use the step
commandtogetthestepresponse.
>>step(Gs)
CreateLTItransferfunctions:CreateopenloopLTI
transfer functions for which you want to analyze
closedloop characteristics or design compensators.
ThetransferfunctionscanbecreatedinanMfileor
intheMATLABCommandWindow.RuntheMfile
orMATLABCommandWindowstatementstoplace
thetransferfunctionintheMATLABworkspace.All
LTI objects in the MATLAB workspace can be
exportedtotheSISODesignTool.
3.
4.
InteractwiththeSISODesignTool:AftertheImport
SystemDatawindowcloses,theSISODesignTool
windownowcontainstherootlocusandBodeplots
forthesystem.
6.
7.
Addpoles,zeros,andcompensators:Polesandzeros
maybeaddedfromtheSISODesignToolwindow
toolbar.Letyourmousepointerrestonthebuttonfor
afewsecondstoseethefunctionalityofthebuttonin
theformofscreentips.Addrealpole;Addrealzero;
Add complex pole; Add complex zero; Delete
pole/zero;....functionsareavailable.
III. RESULTS AND DISCUSSIONS
A. RCNetwork
20
V o (t)
V i (t)
Loopgaincanbechangedinthreedifferentways:
InRootLocusEditor:Keepthemousepointerona
closedloop pole (squares) on the root locus. The
arrowcursorchangestoahand.Holddowntheleft
mousebuttonanddragtheclosedlooppolealongthe
rootlocus.Bodeplotandtheclosedloopresponsein
the LTIViewerwill immediatelychange toreflect
the gain change. The value of the gain will be
displayedintheCurrentCompensatorsectionofthe
SISODesignToolwindow.
InOpenLoopBodeEditor:Keepthemousepointer
anywhereontheBodemagnitudecurve.Thearrow
cursorchangestoahand.Holddowntheleftmouse
buttonandshiftthecurveupordown.Rootlocusand
closedloop response in the LTI Viewer will
immediatelychangetoreflectthegainchange.
5.
Designconstraints:Designconstraintsmaybeadded
toyourplots.Theseconstraintsmaybeselectedby
rightclickingarespectiveplotandselectingDesign
Constraints.Toputnewconstraints,chooseNew
andtoeditexistingconstraints,chooseEdit.
100mF
Figure1RCNetwork
Inordertogetthestepresponseoftheelectricalnetwork,
thetransferfunctionmustbesolvedfirst.
V i ( t )=V i ( s ) ; V o ( t ) =V o ( s) ; i ( t )=I (s ) ;
10
R=20 ; C=
s
10
V i ( s )=I ( s ) 20+
s
V (s) s V (s)
I ( s )= o = o
10
10
s
s V (s)
10
V i ( s )= o
20+
10
s
V i ( s )=V o ( s ) [ 2 s +1 ]
V o (t)
1
V o (s )
1
2
G ( s )=
=
( )
V i (s) 2 s +1 1
2
1
2
G ( s )=
1
s+
2
20
30mH
V i (t)
V o (t)
Figure4RLNetwork
Inordertogetthestepresponseoftheelectricalnetwork,
thetransferfunctionmustbesolvedfirst.
Figure2StepResponseoftheRCNetworkusingStepCommand
Figure3StepResponseoftheRCNetworkusingSISOTOOL
Figure6showsthestepresponseoftheRLNetworkusing
SISOTOOL.
IV. CONCLUSION & RECOMMENDATION
Figure5StepResponseoftheRLNetworkusingStepCommand
Figure5showsthestepresponseoftheRLNetworkusing
stepcommandinMATLAB.
>>num=[10];
>>den=[12000/3];
>>Gs=tf(num,den)
>>step(Gs)
Figure6StepResponseoftheRLNetworkusingSISOTOOL