Target Language Compiler    

General Information and Solver Specification

Each model.rtw generated contains some general information including the model name, the date when the model.rtw file was generated, the version number of the Real-Time Workshop that generated the model.rtw file, and so on. In addition, the Target Language Compiler takes information specific to the solver and solver parameters from the Simulink Parameters dialog box and places it into the model.rtw file.

The following describes the first part of the model.rtw file -- general information (e.g., model name) and the solver specification.

Table A-2: Model.rtw General Information and Solver Specification 
Variable/Record Name
Description
Name

Name of the Simulink model from which this model.rtw file was generated.

Version

Version of the model.rtw file.

ModelVersion

String that is equal to the Model Version property of the Model Info block.

GeneratedOn

Date and time when the model.rtw file was generated.

ExprFolding

0 or 1. Used in generating comments. If expression folding is active, comments incorporate multiple blocks.

Solver

Name of solver as entered in the Simulink Parameters dialog box.

SolverType

FixedStep or VariableStep.

StartTime

Simulation start time as entered in the Simulink Parameters dialog box.

StopTime

Simulation stop time.

FixedStepOpts {

Only written if SolverType is FixedStep.

  SolverMode

Either SingleTasking or MultiTasking.

  FixedStep

Fundamental step size (in seconds) to be used.

  TID01EQ

Either 0 or 1 indicating if the first two sample times are equal (1 if they are equal). This occurs where there is a continuous sample time and one or more discrete sample times and the fixed-step size is equal to the fastest discrete sample time.

}

VariableStepOpts {

Only written if SolverType is VariableStep. These variable step options are used by the Simulink Accelerator and S-function targets.

  RelTol

Relative tolerance.

  AbsTol

Absolute tolerance.

  Refine

Refine factor.

  MaxStep

Maximum step size.

  InitialStep

Initial step size.

  MaxOrder

Maximum order for ode15s.

}


  model.rtw Changes Between Real-Time Workshop 5.0 and 4.1 RTWGenSettings Record