MATLAB: How to disable the dialog box for optimization parameters from the TLC callback file in Real-Time Workshop 6.2 (R14SP2)

optimizationoptionoptionsrealsimulink codertime

I would like to disable the user check box "Conditional Input Branch Execution" under "Simulation -> Configuration Parameters… -> Optimization" GUI. However, even though I set this as disabled the property is still selectable from the user interface.

Best Answer

This bug has been fixed in Real-Time Workshop 6.3 (R14SP3). For previous product releases, read below for any possible workarounds:
There is a bug in Real-Time Workshop 6.2 (R14SP2) in the way that it handles the callback during build.
You can receive the correct settings by reselecting your target (TLC) file under "Simulation -> Configuration Parameters... -> Real-Time Workshop -> System target file" which will cause the user interface to update correctly.