Simulink error: Unable to determine a fixed step size based on the sample times in the model
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mehdi
el 22 de Jun. de 2014
Comentada: Mehdi
el 3 de Jul. de 2014
Friends,
I get the following error while running my SIMULINK model (closed-loop control feedback):
'Unable to determine a fixed step size based on the sample times in the model 'normal_force_input', because the model does not have any discrete sample times. Picking a fixed step size of (12.0) based on simulation start and stop times...
In Solver pane, here are the settings:
Start time: 0.0 Stop time: 10.0
Type: Fixed-step Solver: ODE3 (Boga...)
Fixed step size(fundamental sample time): auto
periodic sample time constraint: unconstrained
Tasking mode ...: auto
Automatically handle ....: unchecked
Higher priority: unchecked
What am I missing? Please help. Thank you.
Mehdi
0 comentarios
Respuesta aceptada
Maximilian
el 3 de Jul. de 2014
I believe that this issue is caused by having the "auto" setting for your fixed step size. When using auto, the solver looks for all the discrete sample times in the model and picks a step size that is a common denominator to all the sample times. Without any discrete sample times the solver doesn't know what to look for. Try to specify your own step size and see if it runs.
Más respuestas (0)
Ver también
Categorías
Más información sobre General Applications en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!