Starting from:

$29.99

ECE486 Prelab Exercise Solution

𝑌(𝑠) 25
𝐻(𝑠)=𝑈 (𝑠)=𝑠2+6𝑠+25
1. Develop an all-integrator block diagram for the transfer function H1(s). What are the damping ratio and natural frequency? What the poles of the system?
2. Simulate the all integrator block diagram using SIMULINK
a) Type simulink in MATLAB command line or click on the Simulink icon as shown

b) Click Blank Model. At the blank SIMULINK library file
c) Double click on the Model Window to open a field and type “integrator” as shown in (I) to select and place the Integrator block. Alternatively, click “Library Bowser”. Search “continuous” to find the Integrator block and drag it to the model browser as illustrated by (II-IV).


d) Repeat the same for other block elements including Gain and Sum (from “Math Operation”).
e) Place a Step block from Source library and To Workspace block from Sink library
Scope block approach as you have learned in Lab 01 to log the data to the workspace too)
g) Label the output of the first integrator y_dot by double-clicking on the line representing the output
h) Double click on the Gain block and set the appropriate values
i) Double click on the Step clock to set the following parameters.
⚫ Step time: 0;
⚫ Initial Value: 0;
⚫ Final Value: 1; ⚫ Sample Time: 0
j) Double click on To Workspace block connect to the output and set the following parameters:
⚫ Variable name: y ⚫ Save format: Array
k) Double click To Workspace block connected to y_dot and set the following parameters:
⚫ Variable name: y_dot;
⚫ Save format: Array
l) Set the simulation parameters by clicking on the Simulation menu and choosing Configuration Parameters, to:
⚫ Stop Time: 3 (chosen to capture the main response)
⚫ Type: Variable-step
⚫ Solver: ode45
⚫ Max Step Size: 0.001(Smaller max step sizes give smoother responses, but take longer to compute)
⚫ Click on Data Import/Export and uncheck the Limit data points to last box.
m) Run the simulation by clicking on the Simulation menu
3) In the MATLAB workspace, you will find three variables: tout, y and y_dot. SIMULINK always saves the time vector as tout. Plot the variable y and y_dot using tout as the time axis.




More products