You are on page 1of 6

STEPS:


Draw the free body diagram.


Write the modeling equation from the free body diagram


Solve the equations for the highest derivative of the output.


Draw a block diagram to represent this equation.


Draw the corresponding Simulink diagram.


Use Step block to provide the input fa(t).


In the Step block, set the initial and final values and the time at which the step occurs.


Use the “To Workspace” blocks for t, fa(t), x, and v in order to allow MATLAB to plot the
desired responses. Set the save format to array in block parameters.


Select the duration of the simulation to be 10 seconds from the Simulation >
Parameters entry on the toolbar


The block diagram will be like below

1
Data
Saving these values in workspace

Fa = 300; % N
M = 750; %kg
K = 15; %N/m
B = 30; % Ns/m

RESULTS:
VELOCITY GRAPH:

2
DISPLACEMENT GRAPH:

COMBINED GRAPH:

3
When the value of M=1750:

Comments: when the value of M is increased from 750 to 1750 kg the displacement curve
showing the variance with respect to velocity.

4
When value of K=150:

Comment: by increasing the value of K to 150 both graph show the same path.

5
When value of B=300:

Comments: by increasing the friction coefficient it can be seen that the direct effect goes on
the displacement curve.

You might also like