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!