It's simple to implement function block.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MYUNGHO JUNG
le 31 Août 2020
Modifié(e) : MYUNGHO JUNG
le 18 Nov 2020
It's simple to implement function block.
0 commentaires
Réponse acceptée
Uday Pradhan
le 1 Sep 2020
Modifié(e) : Uday Pradhan
le 4 Sep 2020
Hi,
To mimic the while loop you can use the "While iterator subsytem" described here. I have attached my model of the subsytem which seems to be very complex but the logic is quite simple and described in the model itself. You will notice that stop time is set to 0, this is because the while iterator subsystem is configured to run while the condition is true or till the max number of iterations is exceeded so we can get the required answer in the first time step itself. I am sure the model could be made simpler so have a look to understand my implementation and make changes according to your needs.
Hope this helps.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Functions 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!