which block to use for feedback loop in simulink
Show older comments
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
Answers (1)
Azzi Abdelmalek
on 15 Jan 2013
0 votes
Both Unit delay and Memory blocks work fine.
7 Comments
Arun Badigannavar
on 15 Jan 2013
Arun Badigannavar
on 15 Jan 2013
Kaustubha Govind
on 15 Jan 2013
(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
on 16 Jan 2013
Arun Badigannavar
on 16 Jan 2013
Edited: Arun Badigannavar
on 16 Jan 2013
Azzi Abdelmalek
on 16 Jan 2013
Arun, post your code which pauses and coninues your simulation
Arun Badigannavar
on 16 Jan 2013
Categories
Find more on String in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!