Initial zero value of every variable in Simulink

19 ビュー (過去 30 日間)
Javier Guiterrez
Javier Guiterrez 2011 年 3 月 25 日
Hello:
I have created a cosimulation control system for ADAMS/Car in Simulink, solving with a discrete solver. I have some blocks that make divisions and the problem is that when the simulation starts, every variable begins with a value of zero even it is a constant (I have checked with the debugger). For this reason, I have error and the simulation does not run.
What can I do to avoid this zero-initialization of the variables?
Thank you in advance.

採用された回答

Sebastian
Sebastian 2011 年 3 月 25 日
You might use Initial Condition (IC) blocks from the Signal Attributes sublibrary in Simulink. Those blocks allow you to specify an initial value for a signal. Also, some blocks have an option to specify initial values for States and others you might replace by blocks that have this option.

その他の回答 (0 件)

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by