which block to use for feedback loop in simulink
이전 댓글 표시
x1=x0+y;
x2=x1+y;
x3=x2+y;
where x0=initial value,,,and x value should be updated continuously ,,this I wanted to implement in simulink,,,and I have developed this with using "unit delay" block,,,but for further am changing some values of equation run time ,,,that time my "unit delay" block is starting calculation again from the initial value,,,rather i want my unit delay to take value of present calculated x value,,,,,,,,or anybody can suggest which is the best block to use for feedback loop,ehich takes initial value from defined value and next value from the feedback loop
답변 (1개)
Azzi Abdelmalek
2013년 1월 15일
0 개 추천
Both Unit delay and Memory blocks work fine.
댓글 수: 7
Arun Badigannavar
2013년 1월 15일
Arun Badigannavar
2013년 1월 15일
Kaustubha Govind
2013년 1월 15일
(FYI, the image link doesn't work)
How do you change the value of the Constant block? Is it a variable in the workspace? If yes, you have to run set_param('modelname', 'SimulationCommand', 'update') or Ctrl+D on the model window to force Simulink to take note of the new value.
Arun Badigannavar
2013년 1월 16일
Arun Badigannavar
2013년 1월 16일
편집: Arun Badigannavar
2013년 1월 16일
Azzi Abdelmalek
2013년 1월 16일
Arun, post your code which pauses and coninues your simulation
Arun Badigannavar
2013년 1월 16일
카테고리
도움말 센터 및 File Exchange에서 Signal Attributes and Indexing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!