Debuging continuous states in a discrete simulation
Mostra commenti meno recenti
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.
Risposte (3)
Kaustubha Govind
il 6 Set 2011
1 voto
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
il 6 Set 2011
0 voti
ivan anthony
il 1 Ott 2025
0 voti
soy kabro
Categorie
Scopri di più su General Applications in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!