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!