Simulink Mask Editor commands inside S-Function (C/C++) source code ?
1 次查看(过去 30 天)
显示 更早的评论
Hello everybody!
Is it possible to mask a S-Function automatically by adding the Mask Editor commands into the S-Function source code ?
For instance by placing the Mask Editor commands within a special function in the S-Function mdlInitializeSizes() ...
I've created several S-Functions for a nice working Software-Interface. But because every S-Function use a different occupancy, the handling is a bit tricky. The Mask Editor works nice and customise every single S-Function, but it would be great if these Mask Editor commands can be placed into the source code. In other words, i've created a own "toolbox" with serveral "tools", how can i customise these "tools" (s-functions) automatically ?
Best regards!
Andre
0 个评论
回答(1 个)
Desiree
2011-8-5
You did not specify which exact Mask Editor commands you would like to implement. However basically there are no C code equivalents for Mask Editor commands. If it's possible to do with MATLAB commands one can always use mexCallMATLAB function in the C S-Function, however I think doing this over the mask itself would be more elegant.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Author Block Masks 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!