Debuging continuous states in a discrete simulation

My simulation fails because The "VariableStepDiscrete" solver cannot be used to simulate block diagram 'Model_Name because it contains continuous states.
How do I troubleshoot? The Sample Time Display doesn't work because the failure occurs before the Sample Time Display is built.
Thanks.

답변 (3개)

Kaustubha Govind
Kaustubha Govind 2011년 9월 6일

1 개 추천

The error occurs because you have continuous states in your model (for example, blocks from the Continuous sub-library in the Simulink library may have continuous states - like the integrator block), not necessarily continuous sample-times. You should switch to a solver that can solve continuous states (see Solvers), like ode45.
Stephen
Stephen 2011년 9월 6일

0 개 추천

ode45 worked -- thanks.

카테고리

도움말 센터File Exchange에서 General Applications에 대해 자세히 알아보기

질문:

2011년 9월 6일

답변:

2025년 10월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by