MATLAB: Where can I find documentation that describes when code under %function enable in a TLC file gets executed in Real-Time Workshop 6.3 (R14SP3)

simulink coder

I could not find any documentation on when the code under %function enable in a TLC file does or does not get executed.

Best Answer

This bug has been fixed in Release 2007a (R2007a). For previous product releases, read below for any possible workarounds:
The documentation on when the code under %function enable in a TLC file gets executed is missing from the documentation in Real-Time Workshop 6.5 (R2006b).
The documentation should include the following information:
When the parameter 'States when enabling' of the Enable block is set to 'held', Real-Time Workshop determines that it is not necessary to generate code for %function enable, so anything you place under %function enable in the TLC file does not get executed. If you change the parameter value of 'States when enabling' of the Enable block to 'reset', code will be generated for %function enable.