How can I increase a count in the while iterator block?

26 vues (au cours des 30 derniers jours)
Carlos
Carlos le 20 Fév 2026 à 3:07
Déplacé(e) : Walter Roberson le 20 Fév 2026 à 19:48
I am trying to run a whilte iterator block for the convergence of a variable, but this variable is not decreasing at all.
The goal is to reach at Display3 a value higher than 7.94 (Psep) and Display1 to show a value lesser than 31.
Could you help with this matter?
Thanks in advance.
  4 commentaires
Carlos
Carlos le 20 Fév 2026 à 16:34
Hi, thanks for your time to analyse this problem.
1- You are right, it is inside a While iterator subsystem
2- You are right, Psep is a constant but it is only a value for comparison, the real thing is that I need that Fcn P be greater than Psep.
It comes from a larger system in which I already know for certain that Fcn P is lower than Psep. (the display block after the while iterator block is not the answer I am looking form).
That is why, inside the while iterator system, I am looking for lowering In1 by 1 each time the while iterator is running in order to have a Fcn P greater than Psep.
3- Again you are right. I am not really certain in the use of the while iterator block in order to control what I am planning to do. Could you tell me how I am supposed to do that? or give me a reference or example that I can use as a guide to do the job.
Thanks again.
Carlos
Carlos le 20 Fév 2026 à 16:51
Déplacé(e) : Walter Roberson le 20 Fév 2026 à 19:48
Hi, I appreciate your time to analyse this problem.
You are right. it comes from a larger system and I already know for certain that Fcn P is lower than Psep and I am looking for lowering In1 by 1 each time the iterator is running in order to have a Fcn P greater than Psep. When Fcn P becomes greater than Psep, I expect to finish the cycle.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits


Version

R2025b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by