which block to use for feedback loop in simulink
Ältere Kommentare anzeigen
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
Antworten (1)
Azzi Abdelmalek
am 15 Jan. 2013
0 Stimmen
Both Unit delay and Memory blocks work fine.
7 Kommentare
Arun Badigannavar
am 15 Jan. 2013
Arun Badigannavar
am 15 Jan. 2013
Kaustubha Govind
am 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
am 16 Jan. 2013
Arun Badigannavar
am 16 Jan. 2013
Bearbeitet: Arun Badigannavar
am 16 Jan. 2013
Azzi Abdelmalek
am 16 Jan. 2013
Arun, post your code which pauses and coninues your simulation
Arun Badigannavar
am 16 Jan. 2013
Kategorien
Mehr zu Signal Attributes and Indexing finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!