| Real-Time Workshop® Embedded Coder™ | ![]() |
slConfigUISetVal(hDlg, hSrc, 'OptionName', OptionValue)
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.
Value to be set for the specified option.
The slConfigUISetVal 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 slConfigUISetVal to set the value of a specified target option.
In the following example, the slConfigUISetVal function sets the value 'off' for 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, slConfigUISetEnabled
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
![]() | slConfigUISetEnabled | syncWithModel | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |