![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/173795/image.png)
[Simulink] "virtual" algebraic loop vectorizing a block
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hello
for a while I use this trick (vectorize a block) to implement n block
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162660/image.png)
which is the same than this :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162661/image.png)
but simulink see an algebraic loop (which doesn't really exist) :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162663/image.png)
if fact my model is more complex (Saint Venant equations)
Until then there was an error, and an integrator bloc was breaking the "loop"
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162664/image.png)
but now I correct this error and the loop come back beacause the integrator had disappear from the "looped signal" (example) :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162665/image.png)
I can't break the loop using usual solutions (delay, filter ...) because it would make false my differentials equations
the only solution I see is to write the developped form (fig 2) using "addBlock" fonction from mask
my question is :
- do you see a solution to "break the loop"
- do you know another way to "vectorize" a block
thanks (and sorry for my English)
Fabien
0 Commenti
Risposte (1)
User_in_Gim
il 7 Apr 2017
Hi Fabien,
You are using the previous value to find your current value so yes, there is an algebric loop.
The most efficient way to "break" the loop is to place your integrator loop on your feedback signal.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/173795/image.png)
With this implementation, you will not have an algebric loop.
1 Commento
Vedere anche
Categorie
Scopri di più su Classical Control Design in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!