Objectives :
⦁ To write differential equations and transfer functions describing the dynamics of electric circuits.
⦁ To introduce MATLAB and Simulink as tools for control solution.
⦁ To find the output response using MATLAB and Simulink.
Introduction:
Basically the word MATLAB means matrix laboratory which was initially developed by a lecturer in 1970’s to help students learn linear algebra.Matlab is a software package which can be used to perform analysis and solve mathematical and engineering problems, whereas Simulink is used in this experiment. Simulink is used to model, analyze and simulate dynamic systems using block diagrams. It is fully integrated with MATLAB, which makes it easy and fast to learn and it is also flexible. In this experiment we are using both Matlab and Simulink to solvetransfer functions in order to obtain results such as plotting response of unit impulse and unit stepoutput.
Simulation and Analysis:
After the MATLAB is opened Simulink session can be started in 2 ways .
⦁ In the MATLAB command window enter the command
>> simulink
⦁ The alternate method is to click the Simulink icon in the MATLAB toolbar
A Simulink window will open as shown in Figure 1. This window shows the libraries of Simulink Blocks that are available for use in constructing Simulink models.
Fig.1: Fig.1: Simulink Library window
Open an existing model or create a new one. To create a new model
select File > New>Model and new model window will appear .
Help or Instructions. Pull down on the help menu in either the Matlab or the Simulink library
window. Matlab and Simulink have extensive on-line help menus which include tutorials and
demonstrations to help you. Also type >>demo simulink at the command prompt to see other help option.
For voltage and current measurement :
Simulink –>Sim power system –> Powergui
Simulink –>Sim power system –> Electrical source –> Select Dc power supply
Simulink –>Sim power system –> Elements–>select Parallel RLC Branch
Simulink–>sim power system–>Measurements –> Select Current Measurements
Simulink–>sim power system–>Measurements –> Select voltage Measurements
Fig.2: pig.2: Simulation of voltage and current measurement by one resistor.
Fig.3: Simulation of voltage measurement by using two resistor in series and apply voltage divider rules.
good
ReplyDelete