Problem with OpenFcn parameter in Simulink

I am creating a Simulink block library and it contains several empty subsystems. I want these subsystems to open up other .mdl files when the user double clicks on them, I have used the OpenFcn parameter to achieve this and it works fine. The problem is when I configure he OpenFcn parameter Simulink no longer displays the subsystem in the library browser. If OpenFcn is left empty the subsystem is dispayed but once it is assigned the block vanishes from the library browser. What is happening here?

댓글 수: 2

Could you try creating a mask on the subsystem and add a parameter named 'ShowInLibBrowser' to the mask? I think this should make the subsystem show up in the browser.
Charles
Charles 2013년 7월 11일
Yeah I did that and it works but I don't understand why this is neccessary. I guess it works so maybe I shouldn't complain.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Subsystems에 대해 자세히 알아보기

제품

질문:

2013년 7월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by