MATLAB/SIMULINK for engineering applications: day 3
1. “MATLAB EXPLORATION”
(Place to visualize
your thoughts)
February 13, 2016
Presentation By
Mr. ReddyPrasad Reddivari,
Assistant Professor
Department of Electrical and Electronics
Engineering
Sri Venkateshwara College of Engineering
Bengaluru, Karnataka-562157
Tel: 9494747497
E-Mail: reddytnp.244@gmail.com.
Website: www.reddyprasad.yolasite.com
MATLAB/SIMULINK for Engineering applications
2. Introduction to
MATLAB and Simulink
Contents
Built in functions
Getting Started
Vectors and Matrices
Introduction
Simulink
Modeling examples
MATLAB
SIMULINK
M–files : script and functions
3. Introduction
Simulink
– Used to model, analyze and simulate dynamic
systems using block diagrams.
– Fully integrated with MATLAB , easy and fast to
learn and flexible.
– It has comprehensive block library which can be
used to simulate linear, non–linear or discrete
systems – excellent research tools.
– C codes can be generated from Simulink models for
embedded applications and rapid prototyping of
control systems.
4. Simulink
Used to model, analyze and simulate dynamic
systems using block diagrams.
Provides a graphical user interface for constructing
block diagram of a system – therefore is easy to use.
However modeling a system is not necessarily easy !
5. MATLAB IntroductionMATLAB IntroductionMATLAB IntroductionMATLAB Introduction
• In Windows
systems
MATLAB is
started by
double-clicking
the mouse on
the appropriate
icon.
• In Windows
systems
MATLAB is
started by
double-clicking
the mouse on
the appropriate
icon.
17. Ex.4:Hybrid Electrical vehicle Simulink model
Control
engineering
I.C engine
engineering
electrical
engineering
mechanical
engineering
mechanical
engineering
18. MATLAB DemosMATLAB DemosMATLAB DemosMATLAB Demos
MATLAB has remarkable graphics
capacities, gallery is one of them:
• The Gallery is a place to hang particularly
elegant examples of graphics visualization
in MATLAB.
• Knot,
• Quiver,
• Klein II,
• Cruller and ...
MATLAB has remarkable graphics
capacities, gallery is one of them:
• The Gallery is a place to hang particularly
elegant examples of graphics visualization
in MATLAB.
• Knot,
• Quiver,
• Klein II,
• Cruller and ...
19.
20. MATLAB DemosMATLAB DemosMATLAB DemosMATLAB Demos
MATLAB has many
toolboxes:
• Control toolbox is one of the
important toolbox in MATLAB.
• RLC Circuit Response,
• Gain and Phase Margins,
• Notch Filter Discrete,
• PID and ...
MATLAB has many
toolboxes:
• Control toolbox is one of the
important toolbox in MATLAB.
• RLC Circuit Response,
• Gain and Phase Margins,
• Notch Filter Discrete,
• PID and ...
21.
22. MATLAB DemosMATLAB DemosMATLAB DemosMATLAB Demos
MATLAB has many toolboxes:
• Signal Processing toolbox is one of
the important toolobx in MATLAB.
• Designing Filter,
• Filtering a Signal,
• Discrete and Continuous Fourier
Transform,
• Spectral Analysis and ...
MATLAB has many toolboxes:
• Signal Processing toolbox is one of
the important toolobx in MATLAB.
• Designing Filter,
• Filtering a Signal,
• Discrete and Continuous Fourier
Transform,
• Spectral Analysis and ...
23.
24. MATLAB DemosMATLAB DemosMATLAB DemosMATLAB Demos
• Simulink has the ability to
simulate a large range of
systems, from very simple to
extraordinarily complex. The
Model and demonstrations that
you will see in this section
include both simple and
complex systems.
• Simulink has the ability to
simulate a large range of
systems, from very simple to
extraordinarily complex. The
Model and demonstrations that
you will see in this section
include both simple and
complex systems.
25.
26. MATLAB DemosMATLAB DemosMATLAB DemosMATLAB Demos
Simulink has the ability to
simulate a large range of systems,
in the menu of Simulation we
have:
• Pause.
• Stop,
• Simulation Parameters,
• Start,
Simulink has the ability to
simulate a large range of systems,
in the menu of Simulation we
have:
• Pause.
• Stop,
• Simulation Parameters,
• Start,
In this example, we first start by the model in full simulation with Ts at 1µs. The voltage source start from 0 to 1pu. The controller is adjust to be able to work with the source at any voltage. This is more realistic since we will be using a variable voltage source with the real DFIG and we won’t start it a full voltage.
Then we replace the IGBT bridge by the IGBT bridge switching function with interpolation with Ts at 25µs. Also all the measurements are sent to the controller from the simulated plant through Analog input/output to the controller. The controller send the pulses to the IGBT bridge using digital input/output. This will add the delay that are present between a real plant and a real controller. After adding these delays, the gain of the controller had to be readjusted.
Now that the model with loop-back IO is working, the pulses are sent to the real IGBT bridge and the voltage measurement comes from the real DFIG.
When increasing the voltage, the controller behave strangely and couldn’t control the DFIG properly. This means the simulated model is different then the real plant.
The problem is that the voltage source as a variable transformer with variable impedance. This variable impedance was neglected in the simulated model.