Algebric loop in simulink

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일

0 개 추천

use this model

댓글 수: 4

Arun Badigannavar
Arun Badigannavar 2012년 11월 15일
Ya I tried this model but I want to set the time,here in this model the time is taken based on solver? I want to calculate it for continuous ,and it should stop when I stop manually,,how to calculate this for continuos updation of 'a' value
Azzi Abdelmalek
Azzi Abdelmalek 2012년 11월 15일
What do you mean I want to set a time?
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일
편집: Muruganandham Subramanian 2012년 11월 9일

0 개 추천

You can use 'from' and 'goto' blocks from simulink-->signal routing library.

댓글 수: 3

Arun Badigannavar
Arun Badigannavar 2012년 11월 9일
But how to update a1 to a2 to a3,I am trying for loop ,,but not getting how to work with for loop subsystem
Muruganandham Subramanian
Muruganandham Subramanian 2012년 11월 9일
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일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Create Large-Scale Model Components에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by