Effacer les filtres
Effacer les filtres

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

23 vues (au cours des 30 derniers jours)
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!

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Physical Units dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by