Programmatically draw action signal line in a Simulink model

I have a Simulink model with two blocks:
I would like to programmatically draw an action-signal-line as described below:
  • Source: one of the output ports of the Switch Case block
  • Destination: the Action port of the Switch Case Action Subsystem block
I'm familiar with the function add_line, which allows to programmatically draw signal lines between two "standard" Simulink blocks.
However, in this specific case the command seems to fail - I suppose that's because I'm dealing with an Action port, which is not a standard one.
Should I use a different function instead of add_line in this case?
Or maybe add_line can still be used, but requires a different kind calling syntax?

 採用された回答

Daniel
Daniel 2024 年 9 月 5 日

0 投票

add_line(bdroot,'Switch Case/1','Switch Case Action Subsystem/Ifaction'), or similar. See the doc for the "in" argument to add_line.

その他の回答 (0 件)

カテゴリ

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

製品

リリース

R2024a

質問済み:

2024 年 9 月 5 日

回答済み:

2024 年 9 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by