Unable to simulate, error in set_param(bdroot, 'SimulationCommand', 'update'), but only first time...

Hi,
I have the issue that when I hit run in a Model for the first time the simulation aborts before starting to run with the error
'myModel'.
  Error in myFunctionCalled.m (line 105)
    set_param(bdroot, 'SimulationCommand', 'update')
No further information on that error to dig deeper is given.
Now, if I just hit run again without changing anything, the simulation runs just fine...
Any hints on why this behaviour occurs or what options do I have to get more details on the issue?
Thanks for your support.

2 件のコメント

Marcus
Marcus 2025 年 7 月 22 日
additional hint: The set_param is called in a matlab script that is called from a Matlab function within the model and is executed first time on simulation start and afterwards can be called in case of user interaction with a matlab app as control center.
That worked fine until now.
Torsten
Torsten 2025 年 7 月 22 日
You should contact Technical Support for both of your questions:

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

製品

リリース

R2024b

質問済み:

2025 年 7 月 22 日

コメント済み:

2025 年 7 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by