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

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 Exchange에서 Simulink 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