Lab em
Lab em
on
Software experiments for
EEE/ECE F211 Electrical Machines
A Introduction to Matlab/Simulink
Platform
Transformer
Introduction: -
Example:
You can use Simulink® to model a system and then simulate the dynamic behavior
of that system. The basic techniques you use to create a simple model in this
tutorial are the same as those you use for more complex models. This example
simulates simplified motion of a car. A car is typically in motion while the gas
pedal is pressed. After the pedal is released, the car idles and comes to a stop.
Block
Block Purpose Model Purpose
Name
Gain Multiply the Calculate how pressing the accelerator affects the
input signal by a car acceleration
constant value
Out port Designate a Designate the position as an output from the model
signal as an
output from the
model
Simulating this model integrates a brief pulse twice to get a ramp. The results
display in a Scope window. The input pulse represents a press of the gas pedal — 1
when the pedal is pressed and 0 when it is not. The output ramp is the increasing
distance from the starting point.
2. Set the Library Browser to stay on top of the other desktop windows. On the
Simulink Library Browser toolbar, select the Stay on top button .
To browse through the block libraries, select a category and then a functional area
in the left pane. To search all of the available block libraries, enter a search term.
For example, find the Pulse Generator block. In the search box on the browser
toolbar, enter pulse, and then press Enter. Simulink searches the libraries for
blocks with pulse in their name or description and then displays the blocks.
Get detailed information about a block. Right-click the Pulse Generator block, and
then select Help for the Pulse Generator block. The Help browser opens with the
reference page for the block.
Blocks typically have several parameters. You can access all block parameters by
double-clicking the block.
Add Blocks to a Model:
To start building the model, browse the library and add the blocks from either from
Simulink / Simscape tool menu only.
1. From the Sources library, drag the Pulse Generator block to the Simulink
Editor. A copy of the Pulse Generator block appears in your model with a text
box for the value of the Amplitude parameter. Enter 1.
4. Add a second Outport block by copying the existing one and pasting it at
another point using keyboard shortcuts.
5. Your model now has the blocks you need.
6. Arrange the blocks by clicking and dragging each block. To resize a block, drag
a corner.
Connect Blocks:
Connect the blocks by creating lines between output ports and input ports.
1. Click the output port on the right side of the Pulse Generator block.
The output port and all input ports suitable for a connection are highlighted.
3. Connect the output port of the Gain block to the input port on the Integrator,
Second-Order block.
4. Connect the two outputs of the Integrator, Second-Order block to the
two Outport blocks.
5. Save your model. In the Simulation tab, click the Save button.
Add Signal Viewer:
To view simulation results, connect the first output to a Signal Viewer.
Click the signal. In the Simulation tab under Prepare, click Add Viewer.
Select Scope. A viewer icon appears on the signal and a scope window opens.
You can open the scope at any time by double-clicking the icon.
Run Simulation:
After you define the configuration parameters, you are ready to simulate your
model.
1. In the Simulation tab, set the simulation stop time by changing the value in the
toolbar.
The default stop time of 10.0 is appropriate for this model. This time value has no
unit. The time unit in Simulink depends on how the equations are constructed. This
example simulates the simplified motion of a car for 10 seconds — other models
could have time units in milliseconds or years.
Name------------------------------------------ID No:------------------------------------
Sec No: -----------------Batch No-----------------Marks Obtained-----------------
Date: -------------------------------------------Instructors Signature: ---------------
Circuit Diagram:
Components Required:
S. No Component Quantity
1 Powergui 1
2 Current measurement 1
3 Voltage measurement 2
4 RMS 4
5 Display 4
6 Linear Transformer 1
7 Power 1
8 AC Voltage Source 1
Circuit Diagram:
Components Required:
S. No Component Quantity
1 Powergui 1
2 Current measurement 1
3 Voltage measurement 2
4 RMS 3
5 Display 3
6 Linear Transformer 1
7 Power 1
8 AC Voltage Source 1
Swinburne’s Test
Name------------------------------------------ ID No:------------------------------------
Sec No: -----------------Batch No-----------------Marks Obtained-----------------
Date: -------------------------------------------Instructors Signature: ---------------
Aim: -
Perform Swinburne’s Test on DC Shunt Motor in Simulink.
Circuit Diagram:
Components Required:
S. No Component Quantity
1 Powergui 1
2 Current measurement 1
3 Voltage measurement 2
5 Display 5
6 DC Machine 1
7 Demux 1
8 DC Voltage Source 1
9 Scope 3
10 Constant 1
11 Gain 1
Name------------------------------------------ ID No:------------------------------------
Sec No: -----------------Batch No-----------------Marks Obtained-----------------
Date: -------------------------------------------Instructors Signature: ---------------
Circuit Diagram:
Components Required:
S. No Component Quantity
1 Powergui 1
2 Current measurement 1
3 Voltage measurement 1
5 Display 3
6 DC Machine 1
7 DC Voltage Source 1
8 Scope 3
9 Constant 1
10 Gain 1
11 Demux 1
Procedure:
Keeping armature voltage constant at 220 V, vary field current and note down
speed. Take minimum 5 sets of readings and plot field current (vs) speed.
Weblink of tutorial:
https://www.youtube.com/watch?v=gWDUnQk_viI
(b) Armature Control of DC Motor in Simulink.
Circuit Diagram:
Components Required:
S. No Component Quantity
1 Powergui 1
2 Current measurement 1
3 Voltage measurement 1
5 Display 3
6 DC Machine 1
7 DC Voltage Source 1
8 Scope 3
9 Constant 1
10 Gain 1
11 Demux 1
Procedure:
Keeping field current constant at rated value of the machine, vary armature voltage
and note down speed. Take minimum 5 sets of readings and plot armature voltage
(vs) speed.
Weblink of tutorial:
https://www.youtube.com/watch?v=gWDUnQk_viI