Contenuto principale

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.

Off

Disables 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

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Create a MAT-File That Includes a Model Parameter Structure

Solver selection

Instruct the target how to select the solver.

Settings

Default: auto

auto

Lets 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 module

Instructs the code generator to use the variable-step solver that you specify on the Solver pane.

Use fixed-step solvers

Instructs 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

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo 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.

Off

Causes 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 ExportedGlobal or ImportExtern.

Command-Line Information

Parameter: RSIM_STORAGE_CLASS_AUTO
Type: character vector
Value: 'on' | 'off'
Default: 'on'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact