Stop Simulink simulation base don a variable value
Afficher commentaires plus anciens
Hello:
I want ot know how to stop a simulink simulation automatically when one of the variables reaches a negative value. I will run it through a .m file
Thank you in advance
Réponse acceptée
Plus de réponses (2)
Fangjun Jiang
le 20 Juin 2011
0 votes
Add an "Assertion" block into your Simulink model. The block is in the library Simulink>Model Verification. It has the option to stop simulation when assertation fails. You need to construct a simple logic to compare your signal to zero.
Javier Guiterrez
le 20 Juin 2011
0 votes
Catégories
En savoir plus sur Simulink dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!