Simulink
Simulink
We assume that there is no force involved. Lets get started. Open a new Simulink file. Our
system involves two integrators (from acceleration to velocity and from velocity to position).
In the Simulink window, click on Continuous.
In the right hand side you can see the integrator. Click on it and drag the block inside the
window just opened. Repeat this operation as, we need two integrators. By now, your window
should look like below:
To model our system we need two more gain blocks and one sumator block. We can find
these two blocks in the Math section.
Right click on the first Gain block. Choose Format->Rotate Block. As this operation will
rotate the block with 90 degrees (clockwise), you have to do it once more time.
Do the same for the second Gain block. Add a scope from Sinks and connect the blocks with
lines.
If you take a look on the block diagram you have just constructed, it is easy to see that it
represents the relationship:
where, the first gain represents the c/m term and the second one represents the term k/m.
INITIAL CONDITIONS
RUN SIMULATION
Now, we do have our model in Simulink. All we need to do is to press the "Run" button
or
Run the simulation. To see the results, double click on the two scopes. The results can be seen
below:
It can be seen that the initial value for position is 1 while the initial value for velocity is 0.
RUN SIMULATION
Now, we do have our model in Simulink. All we need to do is to press the "Run" button
or
Run the simulation. To see the results, double click on the two scopes. The results can be seen
below:
It can be seen that the initial value for position is 1 while the initial value for velocity is 0.
SIMULINK TUTORIAL 3
In this tutorial, we shall describe the most common blocks from Simulink.
Next