Which simulink block will take feedthrough value as input

I don have idea which blok will initiall take a value from workspace and in the next iteration it has to take value as input from simulation outpiut?

回答 (1 件)

TAB
TAB 2012 年 12 月 13 日

0 投票

There are many such blocks, for example Unit Delay block which has Initial value field which can be a constant value or a workspace variable. It takes this value in 1st iteration, after that it take input value.
Which type of block you are looking for ?

7 件のコメント

Arun Badigannavar
Arun Badigannavar 2012 年 12 月 13 日
Ya Presently i have unit delay block oly,,,but i have bug by using that,,,it works nicely as u said,,but meanwhile i want to pause my simulation and reinitialize some variables of simulink againmmmthat time my unit delay will start from intial condition value ,which i have set in the unit delay block,,but i want to continue my simulation after pausing with data wher unit delay block value was paused,,,
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 12 月 13 日
Then using set_param, reset the intitial value of unit delay block.
TAB
TAB 2012 年 12 月 13 日
It is not clear from your words that, either you want initial value of unit delay or its input value after resuming the simulation.
When you pause and resume the simulation, simulink will never reset the output of unit delay to initial value.
Unit delay output will be its delayed input value after resuming the simulation.
Arun Badigannavar
Arun Badigannavar 2012 年 12 月 13 日
no,,its really setting to initial value,,,i have been trying it to set to paused value from last two days,,,
TAB
TAB 2012 年 12 月 13 日
編集済み: TAB 2012 年 12 月 13 日
I just tried roughly. Output of unit delay not set to initial value when I pause and resume the simulation.
Arun Badigannavar
Arun Badigannavar 2012 年 12 月 14 日
@TAB I don know then my logic may giving it to start from initial
TAB
TAB 2012 年 12 月 14 日
編集済み: TAB 2012 年 12 月 14 日
Can you attach the snapshot of your logic here ? It is hard to guess what you are doing wrong without seeing code/model.

サインインしてコメントする。

タグ

質問済み:

2012 年 12 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by