openFcn callback in library blocks
이전 댓글 표시
If I configure the openFcn callback of a subsystem that is a library block, the block disappears from the library browser.
Is it possible somehow (by manipulating the .mdl file in a text editor, e.g.) to use the openFcn callback in that context?
The background is, that I want that subsystem to be a switch that executes an M-file.
Thanks, Christian
답변 (2개)
Kaustubha Govind
2012년 3월 8일
0 개 추천
Does the block appear in the library browser if you don't configure the OpenFcn? It seems like the more likely issue is that you may need to mask your subsystem and create either a dummy parameter or add something to the Documentation tab in the Mask.
Christian
2012년 3월 8일
0 개 추천
댓글 수: 2
Kaustubha Govind
2012년 3월 9일
Is this an empty subsystem then? See if creating a dummy parameter called ShowInLibBrowser on the mask fixes the issue.
Wenfei Wang
2023년 1월 20일
This solved the same issue I had.
카테고리
도움말 센터 및 File Exchange에서 Model, Block, and Port Callbacks에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!