Block Update
显示 更早的评论
Hi, I have created a block set for code generation the block contains four functions.I want to make all the four functional choices as one time use only. If the user uses the block with function one and he trys to use the same block with same function he gets the code generated twice i want to avoid this How am i suppose to update the block so that user cannot see the used functions again.
回答(1 个)
Kaustubha Govind
2012-5-9
0 个投票
The only way I can think of making this possible is to wrap your block with an atomic subsystem with "Function Packaging" set to "Reusable function" - that way, if your block is used in multiple places with the same value for nontunable parameters (different values can be provided for tunable parameters), the code-generation analysis for the subsystem will force all those parts of your model to call into the same reusable function.
类别
在 帮助中心 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!