Is it possible to force mask initialization externally?

I was wondering, is it possible to force mask initialization from an external command somehow?

1 件のコメント

Ezor
Ezor 2016 年 12 月 16 日
I'm looking for the same thing. Did you get an answer so far?

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

回答 (1 件)

Randy
Randy 2016 年 12 月 19 日

1 投票

There may be a better way, but in the meantime, this works for me:
ts = Simulink.BlockDiagram.getSampleTimes(sysname);
I'm not really interested in the sample times, but this command forces an update diagram, so blocks will execute their initialization code.

カテゴリ

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

質問済み:

sst
2016 年 10 月 21 日

回答済み:

2016 年 12 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by