TooHotToHandle
New member
- Nov 30, 2011
- 8
Hello
I am attempting to model a simple mass-spring-damper system with PID contol. I am attempting to run the MSD side of things in a simulink model block with a variable step solver and the controller in a separate fixed step model bloack. The top model which contains the both of the two model blocks has a variable step solver.
The simulink solver documentation mstates that this is a feaxible solver configuration:
Top Model Solver Type Submodel Solver Type
Variable Step Fixed-step
Compatibility
Allowed unless the submodel is multi-rate and specifies both a discrete sample time and a continuous sample time
The submodel used has a single discrete time step of 4ms so to my mind the conditions that have been set are feasible. Only problem is when i run the simulation MATLAB and Simulink both close. This makes inspection of the problem somewhat difficult.
I am attaching the files so that anybody who is interested and who feels they may have an idea as to what the solution may be can help.
Any help would be more than appreciated. I have battled with this for some time now.
I am attempting to model a simple mass-spring-damper system with PID contol. I am attempting to run the MSD side of things in a simulink model block with a variable step solver and the controller in a separate fixed step model bloack. The top model which contains the both of the two model blocks has a variable step solver.
The simulink solver documentation mstates that this is a feaxible solver configuration:
Top Model Solver Type Submodel Solver Type
Variable Step Fixed-step
Compatibility
Allowed unless the submodel is multi-rate and specifies both a discrete sample time and a continuous sample time
The submodel used has a single discrete time step of 4ms so to my mind the conditions that have been set are feasible. Only problem is when i run the simulation MATLAB and Simulink both close. This makes inspection of the problem somewhat difficult.
I am attaching the files so that anybody who is interested and who feels they may have an idea as to what the solution may be can help.
Any help would be more than appreciated. I have battled with this for some time now.