Reloading the model should should make it effective
From the document
rtwgensettings.SelectCallback: This structure field specifies a SelectCallback function. You must setrtwgensettings.Version = '1'; or your callback will be ignored. SelectCallback is associated with the target rather than with any of its individual options. The SelectCallback function is triggered when you:
- Load the model.
- Update any configuration settings in the Configuration Parameters dialog box.
- Build the model.
The SelectCallback function is useful for setting up (or disabling) configuration parameters specific to the target.
Or consider rtwgensettings.PostApplyCallback
rtwgensettings.PostApplyCallback: this property specifies a PostApplyCallback function. The PostApplyCallback function is triggered when the user clicks the Apply or OK button after editing options in the Configuration Parameters dialog box. ThePostApplyCallback function is called after the changes have been applied to the configuration set.
Best Answer