AIM:
To Simulate simple circuit using Circuit Maker.
APPARATUS REQUIRED:
MATLAB Software.
THEORY:
First start the Simulink and create an empty model.
To Create a New Model –
1. Start Simulink by entering ‘simulink’ in the MATLAB Command Window to open the
Simulink Start Page.
2. Select the Blank Model.
The software opens a blank model window
Fig. 1.1 – Simulation Window
Add Blocks to the Model –
To construct a model, first copy blocks from the Simulink Library Browser to the model window.
The required blocks to make a simple circuit are:
Sine Wave – To generate a sinusoidal input signal for the model.
Integrator – To process the input signal.
Scope – To visualize the signals in the model.
Mux – To multiples the input signal and processed signal into a single scope.
1
Simulink Library Browser –
Fig. 1.2 – Simulink Library Browser
1. Select the Sources library in the Simulink Library Browser.
2. Select the Sine Wave Bock in the Simulink Library Browser, then drag it to the model window.
3. Select the Sinks library in the Simulink Library Browser
4. Select the Scope block from the Sinks library, then drag it to the model window.
5. Select the Continues library in the Simulink Library Browser.
6. Select the Integrator block from the Continues library, then drag it to the model window.
7. Select the Signal Routing library in the Simulink Library Browser.
8. Select the Mux block from the Sinks library, then drag it to the model window.
Fig. 1.3 – Model Window
2
Connecting all the Block –
The ‘>’ symbol pointing into a block is an input port.
The ‘<’ symbol pointing out of a block is an output port.
Now connect the output port of Sin Wave block to the input port of Mux, connect output port of
Integrator block to the input port of Mux. The output port of Mux is connected to the input port of
Scope. The input of Integrator block is connected to between the Sine Wave and Mux.
Fig. 1.4 – Simple Circuit in MATLAB
Saving the Model –
To save the model:
1. Select File > Save in the model window.
2. Specify the location in which you want to save the model.
3. Enter simple_circuit in the File name field.
4. Click Save.
The software saves the model with the file name simple_circuit.m
Output at Scope –
Fig. 1.5 – Output
RESULT:
Simulation of a simple circuit using MATLAB is successfully done.