Hi Alexander,
The difference in the responses are introduced by how you have constructed the closed loop transfer function in MATLAB. With this construction when you run the step function, its applying the step to the input of the PI controller and not in the place between the servovalve and the bearing as you have constructed in the model.
The reason you see the ramp response to infinity is because of the resultant cloed-loop transfer function has a pole at zero,essentially acting as an integrator for your step input.
As a side note below, I show how you can derive the closed-loop transfer function of your model directly from Simulink in quick and easy steps using the Model Linearizer app and MATLAB.
- First set up the input and output linear analysis point in your Simulink model to get the loop transfer function. Then open up Model Linearizer in the apps ribbon.
- In the Model Linearizer, set the operating point at which to linearize the model. We go with the model initial condition and run through the steps shown in the image to get your linearized state-space model in the MATLAB workspace
- Then use the 'ss2tf' function in MATLAB to convert from a state-space representation to transfer function, which would be the following equation in the image below. Now if you run the 'step' command you will see the same response as you see in the model (except the step command here is injected at t = 0 rather than t = 1)
Hope this helps,
Sid