| Real-Time Workshop® Embedded Coder™ | ![]() |
slConfigUISetEnabled(hDlg, hSrc, 'OptionName', true) slConfigUISetEnabled(hDlg, hSrc, 'OptionName', false)
Handle created in the context of a SelectCallback function and used by the System Target File Callback Interface functions. Pass this variable but do not set it or use it for any other purpose.
Handle created in the context of a SelectCallback function and used by the System Target File Callback Interface functions. Pass this variable but do not set it or use it for any other purpose.
Quoted name of the TLC variable defined for a custom target configuration option.
Specifies that the option should be enabled.
Specifies that the option should be disabled.
The slConfigUISetEnabled function is used in the context of a user-written SelectCallback function, which is triggered when the custom target is selected in the System Target File Browser in the Configuration Parameters dialog box. You use slConfigUISetEnabled to enable or disable a specified target option.
In the following example, the slConfigUISetEnabled function disables the Terminate function required option on the Real-Time Workshop/Interface pane of the Configuration Parameters dialog box.
function usertarget_selectcallback(hDlg, hSrc)
disp(['*** Select callback triggered:', sprintf('\n'), ...
' Uncheck and disable "Terminate function required".']);
disp(['Value of IncludeMdlTerminateFcn was ', ...
slConfigUIGetVal(hDlg, hSrc, 'IncludeMdlTerminateFcn')]);
slConfigUISetVal(hDlg, hSrc, 'IncludeMdlTerminateFcn', 'off');
slConfigUISetEnabled(hDlg, hSrc, 'IncludeMdlTerminateFcn', false);slConfigUIGetVal, slConfigUISetVal
Defining and Displaying Custom Target Options in the Real-Time Workshop® Embedded Coder™ documentation
Parameter Command-Line Information Summary in the Real-Time Workshop® documentation
![]() | slConfigUIGetVal | slConfigUISetVal | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |