Target Language Compiler    

RTWGenSettings Record

The RTWGenSettings record contains name/value pairs that are assigned via the system target file (e.g., grt.tlc). During an RTW build, the M-code in the system target file

is executed and the RTWGenSettings that are created are set on the model using set_param(model,'RTWGenSettings',rtwgensettings) by make_rtw. Note that the RTWgensettings field name values must be strings. Simulink can then use the RTWGenSettings to affect the compiled characteristics of the model and thus the contents of the model.rtw. The model.rtw will also contain the RTWGenSettings so that rest of the build process including TLC code can have access to them. Additional RTWGenSettings can be added and although Simulink will not use them, they will be written to the model.rtw file and can be used as desired by TLC code.

Table A-3: Model.rtw RTWGenSettings Record
Variable/Record Name
Description
RTWGenSettings {

  BuildDirSuffix

The string to append to the model name to create the build directory name.

  UsingMalloc

Set to "yes" if the generated code will be using dynamic memory allocation.

  IsRSim

Set to "yes" if this build is for the RSIM target.

  IsRTWSfcn

Set to "yes" if this build is for the RTW S-function target.

  ...

Any additional string fields.

}

Note that the above RTWGenSettings records are examples only. All field names and values actually found in a model.rtw file are user-specified.


  General Information and Solver Specification Data Logging Information (DataLoggingOpts)