openFcn callback in library blocks
Mostrar comentarios más antiguos
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
Respuestas (2)
Kaustubha Govind
el 8 de Mzo. de 2012
0 votos
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
el 8 de Mzo. de 2012
0 votos
2 comentarios
Kaustubha Govind
el 9 de Mzo. de 2012
Is this an empty subsystem then? See if creating a dummy parameter called ShowInLibBrowser on the mask fixes the issue.
Wenfei Wang
el 20 de En. de 2023
This solved the same issue I had.
Categorías
Más información sobre Model, Block, and Port Callbacks en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!