Afficher commentaires plus anciens
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.
Réponses (1)
Kaustubha Govind
le 9 Mai 2012
0 votes
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.
Catégories
En savoir plus sur Deployment, Integration, and Supported Hardware dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!