set initial value for a signal and then rewrite it

2 ビュー (過去 30 日間)
Peppe
Peppe 2017 年 9 月 27 日
コメント済み: Peppe 2017 年 10 月 10 日
Hi, I have a loop in which an observer observe the states and then backward it to a controller. There need to be an initial value for one signal. That signal will start the simulations and gets other values in the loop. Does anyone know how to set the initial value for such system in Simulink?

採用された回答

Jyotish Robin
Jyotish Robin 2017 年 10 月 9 日
編集済み: Jyotish Robin 2017 年 10 月 9 日
Hi!
As far as I understand you are looking for a way in which you can specify the initial value for a signal in a Simulink model.
Probably the IC block will fit your needs.
The IC block sets the initial condition of the signal at its input port, for example, the value of the signal at the simulation start time (t_start). The block does this by outputting the specified initial condition when you start the simulation, regardless of the actual value of the input signal. Thereafter, the block outputs the actual value of the input signal.
Hope this helps!
Regards,
Jyotish
  1 件のコメント
Peppe
Peppe 2017 年 10 月 10 日
Exactly what I looked for. Thank you

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSources についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by