Borrar filtros
Borrar filtros

The "FixedStepDiscrete" solver cannot be used to simulate block diagram because it contains continuous states

24 visualizaciones (últimos 30 días)
Hello,
For a project I am building a model in simulink which I want to convert into another type of file that requires an "FixedStepDiscrete" Solver. However, everytime I try to convert it I get this message:
"The "FixedStepDiscrete" solver cannot be used to simulate block diagram XYZ because it contains continuous states"
I think I get this message because I use PS-simulink and Simulink-PS converters in the XYZ block diagram (which use continous states if I am not wrong). Unfortunately, I think I really have to use these converters for my model, so I can not just remove them. Is there another type of block that I can use? Or is there a another way that allows me to have these converters and use a "FixedStepDiscrete" solver?
Please let me know,
Thank you in advance!

Respuesta aceptada

Friso
Friso el 15 de Jul. de 2022
Nevermind, I could easily fix this problem by switching the Solver from discrete (no continous states) to ode 4.

Más respuestas (0)

Categorías

Más información sobre Physical Units 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!

Translated by