Found a solution. Instead of importing data in a two column double (Time and Height of step), i imported from the workspace using the SIMIN block. Hopefully this will help someone else
how to create 1-(cos(x))^2 input to simulink mass spring damper system
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
hi there. I am currently trying to develop a simulink model to describe a quarter car model (dual mass spring damper) with a curved bump as an input. The model i am currently using is the same as on the mathworks website;
https://uk.mathworks.com/help/physmod/simscape/examples/mass-spring-damper-in-simulink-and-simscape.html
i am using this single mass spring damper system for simplicity whilst i learn simulink.
The problem i am having is trying to input a bump that starts at zero, rises to a maximum of 0.05m and returns to zero over a 0.26m length. The curve itself is a 1-(cos(x))^2 curve, using only the first pi radians of the curve so it does not become a negative. i have looked at using the data from a .mat file but i get the error message saying
"simulink is trying to plot over 1300 points and could take some time"
This is because it is taking just the individual parts of the 1300 units long vector, rather than the curve it describes, shown in the attachment.
I am hoping to at some point develop the quarter car model, and from there, a coupled half car model, but i am trying not to run before i can walk. I know the output i am looking for as i have accelerometer data as well as an excel model which describes the quarter car model. For the quarter car model i am looking at implementing somthing similar to;
https://uk.mathworks.com/help/physmod/simscape/examples/double-mass-spring-damper-in-simulink-and-simscape.html
Any help would be greatly appreciated,
also if there are any very good sources for learning the very basics of simulink which someone could point me in the direction of i would be very grateful
many thanks
Ross
0 comentarios
Respuestas (1)
Ver también
Categorías
Más información sobre Multibody Modeling en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!