Lab Session 5ppt
Lab Session 5ppt
Lab Session 5ppt
Feedback/Machine
Control Systems
BE(EL)/TE(ME)
Select File > Save as. In the File name text box,
enter a name for your model, For
example, simple_model.slx. Click Save.
Library Block
Continuous Integrator
Signal Routing Bus Creator
Move ,Resize & connect Blocks
Before you connect the blocks in your
model, arrange the block inputs and
outputs to make signal connections as
straightforward as possible.
1.Move the Scope block after the Bus
block output. You can either:
Click and drag the block.
Select the block, and then press
the arrow keys on your keyboard.
2.Move the blocks until your model looks
similar to the following figure.
Define Configuration Parameters
Before you simulate the behavior of your model, you can modify
the default values for the configuration parameters. The
configuration parameters include the type of numerical solver, start
time, stop time, and maximum step size.
1.From the Simulink Editor menu, select Simulation > Model
Configuration Parameters. The Configuration Parameters dialog
box opens to the Solver pane.
2.In the Stop time field, enter 20. In the Max step size field,
enter 0.2. With the Solver parameter set to auto, Simulink
determines the best numerical solver for simulating your model.
Modify Blocks
Follow these steps to properly modify the blocks in your
model.
Double-click on the Sum block. Since you will want the
second input to be subtracted, enter +- into the list of signs
field. Close the dialog box.
Double-click the Gain block. Change the gain to 2.5 and
close the dialog box.
Double-click the PID Controller block and change the
Proportional gain to 1 and the Integral gain to 2. Close the
dialog box.
Double-click the Transfer Function block. Leave the
numerator [1], but change the denominator to [1 2 4]. Close
the dialog box. The model should appear as:
Draw a line connecting the Sum block
output to the Gain input. Also draw a
line from the Gain to the PI Controller, a
line from the PI Controller to the Plant,
and a line from the Plant to the Scope.
You should now have the following