Filter löschen
Filter löschen

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

23 Ansichten (letzte 30 Tage)
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!

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Physical Units finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by