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.

Answers (1)

Kaustubha Govind
Kaustubha Govind on 9 May 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.

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Products

Asked:

on 8 May 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!