Subsystem to monitor the change of three inputs
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
John MacLean
le 29 Jan 2020
Réponse apportée : Ganesh Regoti
le 5 Fév 2020
I am trying to design a subsystem to monitor the change of three inputs. If one, two or all of the inputs changes values I want the simulationto pause. If none change I want the simulation to continue and so on. I was thinking of using a triggered subsystem but I am not sure how to think f it logically?
0 commentaires
Réponse acceptée
Ganesh Regoti
le 5 Fév 2020
Hi,
You can check whether the value has changed from the previous time-step using delay blocks.
Then you can add logical operations to check you conditions and to pause the simulation you can use assertion blocks. You can refer to
Hope this helps!
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Schedule Model Components dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!