Automated block-insertion for Simulink models via console or api ?

Hi,
is there any possibility to insert a block into a simulink model without opening matlab and using the simulink gui? I have different models and I want to insert my s-function-block into the model and place it 'between' two existing blocks, i.e. I want to insert it into the dataflow between these two blocks. The s-function-block is supposed to feed the data right through during simulation and to send a 'ping', when the generated code is executed on my hardware. Is this there any kind of interface to simulink to manipulate models so that I can automate the block insertion?
Thank you! Cheers, Jens

 採用された回答

Friedrich
Friedrich 2012 年 2 月 7 日

0 投票

1 件のコメント

Kaustubha Govind
Kaustubha Govind 2012 年 2 月 8 日
You might also need to use the delete_line and add_line command to re-wire the signal once you have added the S-function block.

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

その他の回答 (1 件)

Jens
Jens 2012 年 2 月 9 日

0 投票

Thank you very much for your fast replies! That's exactly what I was looking for :-)
Cheers, Jens

カテゴリ

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

製品

質問済み:

2012 年 2 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by