Code Generation Pane: RSim Target
The Code Generation > RSim Target pane includes these parameters when the Simulink®
Coder™ product is installed on your system and you specify the
rsim.tlc system target file.

Code Generation: RSim Target Tab Overview
Set configuration parameters for rapid simulation.
Configuration
This tab appears only if you specify rsim.tlc as the System target file.
See Also
Enable RSim executable to load parameters from a MAT-file
Specify whether to load RSim parameters from a MAT-file.
Settings
Default: on
On Enables RSim to load parameters from a MAT-file.
OffDisables RSim from loading parameters from a MAT-file.
Command-Line Information
Parameter:
RSIM_PARAMETER_LOADING |
| Type: character vector |
Value:
'on' | 'off' |
Default:
'on' |
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
See Also
Solver selection
Instruct the target how to select the solver.
Settings
Default:
auto
autoLets the code generator choose the solver. The code generator uses the Simulink solver module if you specify a variable-step solver on the Solver pane. Otherwise, the code generator uses a built-in solver.
Use Simulink solver moduleInstructs the code generator to use the variable-step solver that you specify on the Solver pane.
Use fixed-step solversInstructs the code generator to use the fixed-step solver that you specify on the Solver pane.
Command-Line Information
Parameter:
RSIM_SOLVER_SELECTION |
| Type: character vector |
Value:
'auto' | 'usesolvermodule' |
'usefixstep' |
Default:
'auto' |
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Force storage classes to AUTO
Specify whether to retain your storage class settings in a model or to use the automatic settings.
Settings
Default: on
On Forces the Simulink software to determine storage classes.
OffCauses the model to retain storage class settings.
Tips
Turn this parameter on for flexible custom code interfacing.
Turn this parameter off to retain storage class settings such as
ExportedGlobalorImportExtern.
Command-Line Information
Parameter:
RSIM_STORAGE_CLASS_AUTO |
| Type: character vector |
Value:
'on' | 'off' |
Default:
'on' |
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |