Debuging continuous states in a discrete simulation

11 Ansichten (letzte 30 Tage)
Stephen
Stephen am 6 Sep. 2011
Beantwortet: ivan anthony am 1 Okt. 2025 um 14:35
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.

Antworten (3)

Kaustubha Govind
Kaustubha Govind am 6 Sep. 2011
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 am 6 Sep. 2011
ode45 worked -- thanks.

ivan anthony
ivan anthony vor etwa 18 Stunden
soy kabro

Kategorien

Mehr zu General Applications 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