Code Generation Pane: S-Function Target
The Code Generation > S-Function Target pane includes the following parameters when the Simulink®
Coder™ product is installed on your system and you specify the
rtwsfcn.tlc system target file.

Code Generation S-Function Target Tab Overview
Control code generated for the S-function target
(rtwsfcn.tlc).
Configuration
This tab appears only if you specify the S-function target
(rtwsfcn.tlc) as the System target file.
See Also
Create new model
Create a new model containing the generated S-function block.
Settings
Default: on
On Creates a new model, separate from the current model, containing the generated S-function block.
OffGenerates code but a new model is not created.
Command-Line Information
Parameter:
CreateModel |
| Type: character vector |
Value:
'on' | 'off' |
Default:
'on' |
See Also
Use value for tunable parameters
Use the variable value instead of the variable name in generated block mask edit fields for tunable parameters.
Settings
Default: off
On Uses variable values for tunable parameters instead of the variable name in the generated block mask edit fields.
OffUses variable names for tunable parameters in the generated block mask edit fields.
Command-Line Information
Parameter:
UseParamValues |
| Type: character vector |
Value:
'on' | 'off' |
Default:
'off' |
See Also
Include custom source code
Include custom source code in the code generated for the S-function.
Settings
Default: off
On Include provided custom source code in the code generated for the S-function.
OffDo not include custom source code in the code generated for the S-function.
Command-Line Information
Parameter:
AlwaysIncludeCustomSrc |
| Type: character vector |
Value:
'on' | 'off' |
Default:
'off' |