Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
OBJECTIVE
To obtain the transient response of the
given RL circuit using MATLAB simulation.
Procedure
Open the MATLAB
Then the window will be
displayed as shown.
Procedure
Go to file, then click the
model as shown.
Procedure
Then
model window
will be displayed as
shown.
Procedure
Open file in the model
Procedure
After saving, the name
Components Required
The components required to obtain the transient
Resistance
Inductance
DC Voltage Source
Ground
Components Required
Voltage measurement block (ammeter)
To measure voltage
Current measurement block (voltmeter)
To measure current
Scope
To see the waveforms
Breaker
To act as a switch
required components,
click the
Library
Browser.
library
browser
window opens as shown.
to simpowersystems.
Then click elements
Then click and drag RLC
series branch
Click and drag breaker to
the model file which you
have already created.
go to simpowersystems.
Then
click
electrical
source
Then click and drag DC
voltage source to the
model file which you have
already created.
pick ground, go to
simpowersystems.
Then click elements
Then
click and drag
ground to the model file
which you have already
created.
measurement block, go to
simpowersystems.
Then,click measurement
Then
click and drag
voltage
and
current
measurement block to the
model file which you have
already created.
simulink.
Then click commonly
used blocks
Then click and drag
scope to the model file
which you have already
created.
components on the
model, the model file
will look as shown.
vertically.
To do this, the command
is ctrl r
source, open it by
double clicking and
set the value say 60
V.
RL
circuit
by
connecting all the
components as shown.
The connection can be
done just by connecting
ends
of
the
components.
The sample is shown.
components
connected.
all
the
are
parameters
A window will open
as shown
select
enable use of
ideal
switching
device.
Another window
opens as shown.
select
disable
snubbers
in
switching
devices and disable on
resistance in switching
devices.
powergui name
changed as shown.
is
Settings of breaker
Open breaker by double
clicking.
A window
shown.
appears
as
Settings of breaker
Disable external switching
Settings of breaker
Once
the
external
switching
time
is
disabled.
The symbol for circuit
breaker gets changed as
shown.
Settings of breaker
The breaker time is user
defined.
If one wishes to on the
switch at 0 sec, then set
the values to 0 after
deleting the default
switching time.
After doing this, the
window appears as
shown.
Simulation settings
Before
start simulation,
the simulation settings
are done.
To
do
this,
click
simulation
in
the
model file and click
configure parameters as
shown.
Simulation settings
When the configure
parameters is clicked.
A window appears as
shown.
Then set the initial
step size as 0.0001
Then select the solver
as ode23tb
Scope Setting
Open the scope by double
clicking it.
Then click parameters as
shown.
A window opens as shown.
Disable limit data points
to last.
Simulation
simulation time is user defined.
Set the simulation time.
The default time 10 sec can be changed or it can be
retained.
Simulation
Click
Start
simulation icon
which
is
triangular
in
shape
as
indicated in red
color.
Current
(A)
Calculated
Simulated
Calculated
Simulated
Calculated
Simulated
Calculated
Simulated
60
60
1.110-7
2.5
2.5
Conclusions
From results obtained, it is clearly understood that the
Precaution
Every time, save the model file.
Thank You