how to retrieve the Simulink execution order from the workspace

3 ビュー (過去 30 日間)
Jeff Hoefler
Jeff Hoefler 2016 年 1 月 18 日
コメント済み: Álvaro 2024 年 10 月 21 日
I want to be able to retrieve, and store, in the workspace the execution order of a simulink model. I already know how to retrieve all the blocks and their parameters etc. but want to also store the execution order of those blocks

採用された回答

C.J. Harris
C.J. Harris 2016 年 1 月 18 日
As far as I know there isn't really an easy way to do this (i.e. using get_param or similar). Instead you have to debug your model using the sldebug command, and then extract the necessary execution order information using the elist command.
Example:
sldebug('MyModel')
Then at the debug prompt you can start by getting the top-level execution list:
elist gcs
See the help for more imformation:
  3 件のコメント
german baca espinoza
german baca espinoza 2018 年 3 月 27 日
Hello Jeff, i actually have arrived to the same point. Did you manage to solve this?
Álvaro
Álvaro 2024 年 10 月 21 日
Likewise! Have you managed to find a solution? Thanks!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDebug Simulations Programmatically についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by