필터 지우기
필터 지우기

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

조회 수: 23 (최근 30일)
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!

채택된 답변

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Physical Units에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by