Model Configuration Parameters: Advanced Parameters

Simulink® Coder™ provides advanced configuration parameters that appear only on the All Parameters tab of the Configuration Parameters dialog box. These advanced parameters are in the Code Generation and Hardware Implementation categories. To view these parameters, on the All Parameters tab, search for Advanced Parameters.

Configuration Parameters for Code Generation Advanced Parameters

ParameterDescription

Classic call interface

Specify whether to generate model function calls compatible with the main program module of the GRT target in models created before R2012a.

Code-to-model

Include hyperlinks in the code generation report that link code to the corresponding Simulink blocks, Stateflow® objects, and MATLAB® functions in the model diagram.

Combine signal/state structures

Specify whether to combine global block signals and global state data into one data structure in the generated code

Configure

Open the Model-to-code navigation dialog box for specifying a build folder containing previously-generated model code to highlight.

Custom LAPACK library callback

Specify LAPACK library callback class for LAPACK calls in code generated from MATLAB code.

Eliminated / virtual blocks

Include summary of eliminated and virtual blocks in code generation report.

Enable TLC assertion

Produce the TLC stack trace.

Generate destructor

Specify whether to generate a destructor for the C++ model class.

Ignore custom storage classes

Specify whether to apply or ignore custom storage classes.

Ignore test point signals

Specify allocation of memory buffers for test points.

Internal data access

Specify whether to generate access methods for internal data structures, such as Block I/O, DWork vectors, Run-time model, Zero-crossings, and continuous states, for the C++ model class.

Internal data visibility

Specify whether to generate internal data structures such as Block I/O, DWork vectors, Run-time model, Zero-crossings, and continuous states as public, private, or protected data members of the C++ model class.

MAT-file logging

Specify MAT-file logging.

MAT-file variable name modifier

Select the text to add to MAT-file variable names.

Maximum word length

Specify a maximum word length, in bits, for which the code generation process generates system-defined multiword type definitions.

Model-to-code

Link Simulink blocks, Stateflow objects, and MATLAB functions in a model diagram to corresponding code segments in a generated HTML report so that the generated code for a block can be highlighted on request.

Multiword type definitions

Specify whether to use system-defined or user-defined type definitions for multiword data types in generated code.

Profile TLC

Profile the execution time of TLC files.

Retain .rtw file

Specify model.rtw file retention.

Single output/update function

Specify whether to generate the model_step function.

Standard math library

Specify the standard math library for your execution environment. Verify that your compiler supports the library you want to use; otherwise compile-time errors can occur.
C89/C90 (ANSI) - ISO®/IEC 9899:1990 C standard math library
C99 (ISO) - ISO/IEC 9899:1999 C standard math library
C++03 (ISO) - ISO/IEC 14882:2003 C++ standard math library

Start TLC coverage when generating code

Generate the TLC execution report.

Start TLC debugger when generating code

Specify use of the TLC debugger

Summarize which blocks triggered code replacements

Include code replacement report summarizing replacement functions used and their associated blocks in the code generation report.

Support: non-inlined S-functions

Specify whether to generate code for non-inlined S-functions.

Terminate function required

Specify whether to generate the model_terminate function.

Traceable MATLAB functions

Include summary of MATLAB functions in code generation report.

Traceable Simulink blocks

Include summary of Simulink blocks in code generation report.

Traceable Stateflow objects

Include summary of Stateflow objects in code generation report.

Use dynamic memory allocation for model block instantiation

Specify whether generated code uses the operator new, during model object registration, to instantiate objects for referenced models configured with a C++ class interface.

Use dynamic memory allocation for model initialization

Control how the generated code allocates memory for model data.

Use Simulink Coder Features

Enable Simulink Coder features for models deployed to Simulink Supported Hardware.

Verbose build

Display code generation progress.

Custom token text

Custom text to replace $U in the Symbols pane.

Remove reset function

Remove unreachable (dead-code) instances of the reset functions from the generated code for ERT-based systems that include model referencing hierarchies.

Remove disable function

Remove unreachable (dead-code) instances of the disable functions from the generated code for ERT-based systems that include model referencing hierarchies.

The following Code Generation > Advanced Parameters are infrequently used and have no other documentation.

ParameterDescription

CompOptLevelCompliant
off, on

Set in SelectCallback for a target to indicate whether the target supports the ability to use the Compiler optimization level parameter on the All Parameters tab to control the compiler optimization level for building generated code.

Default is off for custom targets and on for targets provided with the Simulink Coder and Embedded Coder® products.

ConcurrentExecutionCompliantIndicates whether the target supports concurrent execution.
GenerateFullHeaderGenerate full header including time stamp.
GenerateSharedConstants

Control whether the code generator generates code with shared constants and shared functions. Default is on. off turns off shared constants, shared functions, and subsystem reuse across models.

IsERTTargetIndicates whether or not the currently selected target is derived from the ERT target.
MultiwordLengthMaximum multiword length.
ModelReferenceCompliant
character vector - off, on
Set in SelectCallback for a target to indicate whether the target supports model reference.
ParMdlRefBuildCompliantIndicates if the model is configured for parallel builds when building a model that includes referenced models.
PostCodeGenCommand
character vector - ''
Add the specified post code generation command to the model build process.
ProfileTLC
character vector - off, on
Profile the execution time of each TLC file used to generate code for this model in HTML format.
RTWVerbose
character vector - off, on
Display messages indicating code generation stages and compiler output.
RetainRTWFile
character vector - off, on
Retain the model.rtw file in the current build folder.
TargetLibSuffix
character vector - ''
Control the suffix used for naming a target's dependent libraries (for example, _target.lib or _target.a). If specified, the character vector must include a period (.). (For generated model reference libraries, the library suffix defaults to _rtwlib.lib on Windows® systems and _rtwlib.a on UNIX® systems.).
TargetPreCompLibLocation
character vector - ''
Control the location of precompiled libraries. If you do not set this parameter, the code generator uses the location specified in rtwmakecfg.m.
TLCAssert
character vector - off, on
Produce a TLC stack trace when the argument to the assert directives evaluates to false.
TLCCoverage
character vector - off, on
Generate .log files containing the number of times each line of TLC code is executed during code generation.
TLCDebug
character vector - off, on
Start the TLC debugger during code generation at the beginning of the TLC program. TLC breakpoint statements automatically invoke the TLC debugger regardless of this setting.
TLCOptions
character vector - ''
Specify additional TLC command line options.

Configuration Parameters for Hardware Implementation Advanced Parameters

The following model configuration parameters have no other documentation.

ParameterDescription
TargetPreprocMaxBitsSint
int - 32
Specify the maximum number of bits that the target C preprocessor can use for signed integer math.
TargetPreprocMaxBitsUint
int - 32
Specify the maximum number of bits that the target C preprocessor can use for unsigned integer math.

Use Embedded Coder Features

Enable Embedded Coder features for models deployed to Simulink Supported Hardware.

Configuration Parameters for MathWorks Use Only

ParameterDescription
CommentFor MathWorks use only.
ERTCustomFileBannersFor MathWorks use only.
ExtModeMexFileFor MathWorks use only.
ExtModeTestingFor MathWorks use only.
IncAutoGenCommentsFor MathWorks use only.
PreserveNameFor MathWorks use only.
PreserveNameWithParentFor MathWorks use only.
SignalNamingFcnFor MathWorks use only.
TargetFcnLibFor MathWorks use only.
TargetTypeEmulationWarnSuppressLevel
int - 0

For MathWorks use only.

When greater than or equal to 2, suppress warning messages that the code generator displays when emulating integer sizes in rapid prototyping environments.

Was this topic helpful?