Is there a way to stop Simulink from going through a function block after the first time during a Simulation

1 回表示 (過去 30 日間)
Hello,
I am trying to run a model in Simulink where I set some constant variables with values in the top heiarchy using MatLAB Function blocks. As the simulation continues through all of my blocks it goes back to the beginning function block and redefines everything. I am wondering if there is a way to run through the function block once and then ignore it as the simulation continues. Any help and/or advice on this matter would be greatly appreciated. Thank you!

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 6 月 17 日
You can use enabled-subsystems
  1 件のコメント
Nicholas
Nicholas 2013 年 6 月 17 日
Thank you very much! Obviously I'm new to Simulink, this is what I'm looking for.

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

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by