Algebric loop in simulink

8 次查看(过去 30 天)
How to make algebric loop in simulink,
I have requirment where I have to add two constant numbers with increment of 1, a=constant b=constant
a1=a+b; a2=a1+b; a3=a2+b; a4=a3+b;

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2012-11-9
use this model
  4 个评论
Arun Badigannavar
Arun Badigannavar 2012-11-15
How can I put infinite loop in simulink
Azzi Abdelmalek
Azzi Abdelmalek 2012-11-15
just set stop time to inf (simulation parameter)

请先登录,再进行评论。

更多回答(2 个)

Muruganandham Subramanian
编辑:Muruganandham Subramanian 2012-11-9
You can use 'from' and 'goto' blocks from simulink-->signal routing library.
  3 个评论
Muruganandham Subramanian
a1=a+b( for a1(tag name) use goto block to store the value(either 'local' or global), then do continuously..
Arun Badigannavar
Arun Badigannavar 2012-11-9
This doing continuosly am not getting,how to continue it with increment of a1 a2 a3 a4

请先登录,再进行评论。


Anthony Poulin
Anthony Poulin 2012-11-9
Hey, in your case you don't have an algebrical loop because your operations are in ''cascade'' (english translation of a french word, I don't know if it's understandable). If you want to create one, you have to make an operation like a1 = a + a1.

产品

Community Treasure Hunt

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

Start Hunting!

Translated by