Parameter Reference

Recommended Settings Summary

The following table summarizes the impact of each Real-Time Workshop Embedded Coder configuration parameter on debugging, traceability, efficiency, and safety considerations, and indicates the factory default configuration settings for the ERT target. The Real-Time Workshop configuration parameters are documented in Recommended Settings Summary in the Real-Time Workshop documentation. For additional details, click the links in the Configuration Parameter column.

Mapping of Application Requirements to the Optimization Pane

Configuration ParameterDebuggingTraceabilityEfficiencySafety PrecautionFactory Default

Application lifespan (days)

No impact

No impact

Optimal finite value

inf

1 for ERT targets

Parameter structure

No impact

Hierarchical

NonHierarchical

No impact

NonHierarchical

Remove root level I/O zero initialization

No impact

No impact

On

Off

Off

Remove internal data zero initialization

No impact

No impact

On

Off

Off

Optimize initialization code for model reference

No impact

No impact

On

No impact

On

Remove code that protects against division arithmetic exceptions

No impact

No impact

On

Off

Off

Mapping of Application Requirements to the Real-Time Workshop Pane

Configuration ParameterDebuggingTraceabilityEfficiencySafety PrecautionFactory Default

Ignore custom storage classes

No impact

No impact

No impact

No impact

Off

Mapping of Application Requirements to the Real-Time Workshop Pane: Report Tab

Configuration ParameterDebuggingTraceabilityEfficiencySafety PrecautionFactory Default
Code-to-model

On

On

No impact

On

Off

Model-to-code

On

On

No impact

On

Off

Eliminated / virtual blocks

On

On

No impact

On

Off

Traceable Simulink blocks

On

On

No impact

On

Off

Traceable Stateflow objects

On

On

No impact

On

Off

Traceable Embedded MATLAB functions

On

On

No impact

On

Off

Mapping of Application Requirements to the Real-Time Workshop Pane: Comments Tab

Configuration ParameterDebuggingTraceabilityEfficiencySafety PrecautionFactory Default

Simulink block descriptions

On

On

No impact

No impact

Off

Simulink data object descriptions

On

On

No impact

No impact

Off

Custom comments (MPT objects only)

On

On

No impact

No impact

Off

Custom comments function

Any valid file name

Any valid file name

No impact

No impact

''

Stateflow object descriptions

On

On

No impact

No impact

Off

Requirements in block comments

On

On

No impact

On

Off

Mapping of Application Requirements to the Real-Time Workshop Pane: Symbols Tab

Configuration ParameterDebuggingTraceabilityEfficiencySafety PrecautionFactory Default

Global variables

No impact

Any valid combination of tokens

No impact

$R$N$M

$R$N$M

Global types

No impact

Any valid combination of tokens

No impact

$N$R$M

&N$R$M

Field name of global types

No impact

Any valid combination of tokens

No impact

$N$M

$N$M

Subsystem methods

No impact

Any valid combination of tokens

No impact

$R$N$M$F

$R$N$M$F

Local temporary variables

No impact

Any valid combination of tokens

No impact

$N$M

$N$M

Local block output variables

No impact

Any valid combination of tokens

No impact

rtb_$N$M

rtb_$N$M

Constant macros

No impact

Any valid combination of tokens

No impact

$R$N$M

$R$N$M

Minimum mangle length

No impact

1

No impact

4

1

Generate scalar inlined parameters as

No impact

Macros

Literals

No impact

Literals

#define naming

No impact

Force uppercase

No impact

No impact

None

Parameter naming

No impact

Force uppercase

No impact

No impact

None

Signal naming

No impact

Force uppercase

No impact

No impact

None

M-function

No impact

No impact

No impact

No impact

''

Mapping of Application Requirements to the Real-Time Workshop Pane: Interface Tab

Configuration ParameterDebuggingTraceabilityEfficiencySafety PrecautionFactory Default

Support: floating-point numbers

No impact

No impact

Off for integer only

No impact

On

Support complex numbers

No impact

No impact

Off for real only

No impact

On

Support non-finite numbers

No impact

No impact

Off

Off

On

Support absolute time

No impact

No impact

Off

Off

On

Support continuous time

No impact

No impact

Off

Off

Off

Support non-inlined S-functions

No impact

No impact

Off

Off

Off

Multiword type definitions

No impact

No impact

Specifying User defined and a low value for Maximum word length reduces the size of the generated file rtwtypes.h

Use default

System defined

Maximum word length

No impact

No impact

Smaller values reduce the size of the generated file rtwtypes.h

Use default

256

GRT compatible call interface

No impact

Off

Off

Off

Off

Single output/update function

On

On

On

On

On

Terminate function required

No impact

No impact

Off

Off

On

Generate reusable code

No impact

No impact

Set for single instance

No impact

Off

Reusable code error diagnostic

Warning or Error

No impact

None

No impact

Error

Pass root-level I/O as

No impact

No impact

No impact

No impact

Individual arguments

Parameters and states members private

No impact

No impact

No impact

On

On

Parameters and states access methods

On

No impact

No impact

Off

Off

Generate destructor

No impact

No impact

No impact

Off

On

I/O access methods

On

No impact

No impact

Off

Off

Inline access methods

On

On

On

No impact

Off

Suppress error status in real-time model data structure

Off

No impact

On

On

Off

Create Simulink (S-Function) block

On

No impact

No impact

No impact

Off

Enable portable word sizes

On

On

Off

No impact

Off

MAT-file logging

On

No impact

Off

Off

Off

Mapping of Application Requirements to the Real-Time Workshop Pane: Code Style Tab

Configuration ParameterDebuggingTraceabilityEfficiencySafety PrecautionFactory Default
Parentheses levelNominal (Optimize for readability)Nominal (Optimize for readability)Minimum (Rely on C/C++ operators for precedence)Maximum (Specify precedence with parentheses)Nominal (Optimize for readability)
Preserve operand order in expressionOnOnOffOnOff
Preserve condition expression in if statementOnOnOffOffOff

Mapping of Application Requirements to the Real-Time Workshop Pane: Templates Tab

Configuration ParameterDebuggingTraceabilityEfficiencySafety PrecautionFactory Default
Code templates: Source file (*.c) templateNo impactNo impactNo impactNo impactert_code_template.cgt
Code templates: Header file (*.h) templateNo impactNo impactNo impactNo impactert_code_template.cgt
Data templates: Source file (*.c) templateNo impactNo impactNo impactNo impactert_code_template.cgt
Data templates: Header file (*.h) templateNo impactNo impactNo impactNo impactert_code_template.cgt
File customization templateNo impactNo impactNo impactNo impactexample_file_process.tlc
Generate an example main programNo impactNo impactNo impactNo impactOn
Target operating systemNo impactNo impactNo impactNo impactBareBoardExample

Mapping of Application Requirements to the Real-Time Workshop Pane: Data Placement Tab

Configuration ParameterDebuggingTraceabilityEfficiencySafety PrecautionFactory Default

Data definition

No impact

Any valid value

No impact

No impact

Auto

Data definition filename

No impact

Any valid value

No impact

No impact

global.c

Data declaration

No impact

Any valid value

No impact

No impact

Auto

Data declaration filename

No impact

Any valid value

No impact

No impact

global.h

#include file delimiter

No impact

Any valid value

No impact

No impact

Auto

Module naming

No impact

Any valid value

No impact

No impact

Not specified

Module name

No impact

Any valid value

No impact

No impact

''

Signal display level

No impact

Any valid integer

No impact

No impact

10

Parameter tune level

No impact

Any valid integer

No impact

No impact

10

Mapping of Application Requirements to the Real-Time Workshop Pane: Data Type Replacement Tab

Configuration ParameterDebuggingTraceabilityEfficiencySafety PrecautionFactory Default
Replace data type names in the generated codeNo impactOnNo impactOff

Off

Replacement NameNo impactAny valid stringNo impact''''

Mapping of Application Requirements to the Real-Time Workshop Pane: Memory Sections Tab

Configuration ParameterDebuggingTraceabilityEfficiencySafety PrecautionFactory Default
PackageNo impactNo impactNo impactNo impact---None---
Initialize/TerminateNo impactNo impactNo impactNo impactDefault
ExecutionNo impactNo impactNo impactNo impactDefault
ConstantsNo impactNo impactNo impactNo impactDefault
Inputs/OutputsNo impactNo impactNo impactNo impactDefault
Internal dataNo impactNo impactNo impactNo impactDefault
ParametersNo impactNo impactNo impactNo impactDefault
Validation resultsNo impactNo impactNo impactNo impactPackage and memory sections found.

Parameter Command-Line Information Summary

The following tables list Real-Time Workshop Embedded Coder parameters that you can use to tune model and target configurations. The table provides brief descriptions, valid values (bold type highlights defaults), and a mapping to Configuration Parameter dialog box equivalents. For descriptions of the panes and options in that dialog box, see Configuration Parameters in the Real-Time Workshop Embedded Coder documentation.

Use the get_param and set_param commands to retrieve and set the values of the parameters on the MATLAB command line or programmatically in scripts. The Real-Time Workshop Embedded Coder Configuration Wizard also provides buttons and scripts for customizing code generation.

For information about Simulink parameters, see Configuration Parameters Dialog Box in the Simulink documentation. For information about Real-Time Workshop parameters, see Configuration Parametersin the Real-Time Workshop documentation. For information on using get_param and set_param to tune the parameters for various model configurations, see Parameter Tuning by Using MATLAB Commands. See Using Configuration Wizard Blocks in the Real-Time Workshop Embedded Coder documentation for information on using Configuration Wizard features.

Command-Line Information: Optimization Pane

Parameter and ValuesConfiguration Parameters Dialog Box EquivalentDescription
DataBitsets (Stateflow)
off, on
Optimization > Use bitsets for storing boolean dataUse bit sets for storing Boolean data.
InlinedParameterPlacement (ERT)
Hierarchical, NonHierarchical
Optimization > Parameter structureSpecify how generated code stores global (tunable) parameters. Specify NonHierarchical to trade off modularity for efficiency.
NoFixptDivByZeroProtection (ERT) (Fixed-Point Toolbox)
off, on
Optimization > Remove code that protects against division arithmetic exceptionsSuppress generation of code that guards against division by zero for fixed-point data.
OptimizeModelRefInitCode
(ERT)
off, on
Optimization > Optimize initialization code for model referenceSuppress generation of initialization code to accommodate the case where this model is referred to by a subsystem that resets its states when enabled. Select this option if the model will never be referred to by such a subsystem. The Simulink engine reports an error if this constraint is violated, in which case you can disable this optimization.
StateBitsets (Stateflow)
off, on
Optimization > Use bitsets for storing state configurationUse bit sets for storing state configuration.
ZeroExternalMemoryAtStartup (ERT)
off, on
Optimization > Remove root level I/O zero initializationSuppress code that initializes root-level I/O data structures to zero.
ZeroInternalMemoryAtStartup (ERT)
off, on
Optimization > Remove internal data zero initializationSuppress code that initializes global data structures (for example, block I/O data structures) to zero.

Command-Line Information: Real-Time Workshop Pane: General Tab

Parameter and ValuesConfiguration Parameters Dialog Box EquivalentDescription
IgnoreCustomStorageClasses (ERT)
string - off, on
Real-Time Workshop > General > Ignore custom storage classesTreat custom storage classes as 'Auto'.

Command-Line Information: Real-Time Workshop Pane: Report Tab

Parameter and ValuesConfiguration Parameters Dialog Box EquivalentDescription
GenerateTraceInfo (ERT)
string - off, on
Real-Time Workshop > Report >
Model-to-code
Includes model-to-code traceability support in the generated HTML report.
IncludeHyperlinkInReport (ERT)
string - off, on
Real-Time Workshop > Report >
Code-to-model
Link code segments to the corresponding object in the model. This option increases code generation time for large models.
GenerateTraceReport (ERT)
string - off, on
Real-Time Workshop > Report >
Eliminated / virtual blocks
Include summary of eliminated and virtual blocks in Code Generation report.
GenerateTraceReportSl (ERT)
string - off, on
Real-Time Workshop > Report >
Traceable Simulink blocks
Include summary of Simulink blocks in Code Generation report.
GenerateTraceReportSf (ERT)
string - off, on
Real-Time Workshop > Report >
Traceable Stateflow objects
Include summary of Stateflow objects in Code Generation report.
GenerateTraceReportEml (ERT)
string - off, on
Real-Time Workshop > Report >
Traceable Embedded MATLAB functions
Include summary of Embedded MATLAB functions in Code Generation report.

Command-Line Information: Real-Time Workshop Pane: Comments Tab

Parameter and ValuesConfiguration Parameters Dialog Box EquivalentDescription
CustomCommentsFcn (ERT)
string - ''
Real-Time Workshop > Comments >
Custom comments function
Specify the filename of the M-function or TLC function that adds the custom comment.
EnableCustomComments (ERT)
string - off, on
Real-Time Workshop > Comments >
Custom comments (MPT objects only)
Add a comment above a signal's or parameter's identifier in the generated file.
InsertBlockDesc (ERT)
string - off, on
Real-Time Workshop > Comments >
Simulink block descriptions
Insert the contents of the Description field from the Block Parameters dialog box into the generated code as a comment.
ReqsInCode (ERT)
string - off, on
Real-Time Workshop > Comments >
Requirements in block comments
Include specified requirements in the generated code as a comment.
SFDataObjDesc (ERT)
string - off, on
Real-Time Workshop > Comments >
Stateflow object descriptions
Insert Stateflow object descriptions into the generated code as a comment.
SimulinkDataObjDesc (ERT)
string - off, on
Real-Time Workshop > Comments >
Simulink data object descriptions
Insert Simulink data object descriptions into the generated code as comments.

Command-Line Information: Real-Time Workshop Pane: Symbols Tab

Parameter and ValuesConfiguration Parameters Dialog Box EquivalentDescription
CustomSymbolStrBlkIO (ERT)
string - rtb_$N$M
Real-Time Workshop > Symbols > Local block output variablesSpecify a symbol format rule for local block output variables. The rule can contain valid C identifier characters and the following macros:
$M - Mangle
$N - Name of object
$A - Data type acronym
CustomSymbolStrFcn (ERT)
string - $R$N$M$F
Real-Time Workshop > Symbols >
Subsystem methods
Specify a symbol format rule for subsystem methods. The rule can contain valid C identifier characters and the following macros:
$M - Mangle
$R - Root model name
$N - Name of object
$H - System hierarchy number
$F - Subsystem method name
CustomSymbolStrField (ERT)
string - $N$M
Real-Time Workshop > Symbols > Field name of global typesSpecify a symbol format rule for field name of global types. The rule can contain valid C identifier characters and the following macros:
$M - Mangle
$N - Name of object
$H - System hierarchy number
$A - Data type acronym
CustomSymbolStrGlobalVar (ERT)
string - $R$N$M
Real-Time Workshop > Symbols > Global variablesSpecify a symbol format rule for global variables. The rule can contain valid C identifier characters and the following macros:
$M - Mangle
$R - Root model name
$N - Name of object
CustomSymbolStrMacro (ERT)
string - $R$N$M
Real-Time Workshop > Symbols >
Constant macros
Specify a symbol format rule for constant macros. The rule can contain valid C identifier characters and the following macros:
$M - Mangle
$R - Root model name
$N - Name of object
CustomSymbolStrTmpVar (ERT)
string - $N$M
Real-Time Workshop > Symbols > Local temporary variablesSpecify a symbol format rule for local temporary variables. The rule can contain valid C identifier characters and the following macros:
$M - Mangle
$R - Root model name
$N - Name of object
CustomSymbolStrType (ERT)
string - $N$R$M
Real-Time Workshop > Symbols > Global typesSpecify a symbol format rule for global types. The rule can contain valid C identifier characters and the following macros:
$M - Mangle
$R - Root model name
$N - Name of object
DefineNamingFcn (ERT)
string -''
Real-Time Workshop > Symbols > #define naming > Custom M-functionSpecify a custom M-function to control the naming of symbols with #define statements. You can set this parameter only if DefineNamingRule is set to Custom.
DefineNamingRule (ERT)
string - None, UpperCase, LowerCase, Custom
Real-Time Workshop > Symbols > #define namingSpecify the rule that changes the spelling of all #define names.
IncDataTypeInIds (ERT)
off, on
Real-Time Workshop > Symbol > Include data type acronym in identifiersInclude acronyms that express data types in signal and work vector identifiers. For example, 'rtB.i32_signame' identifies a 32-bit integer block output signal named 'signame'.
IncHierarchyInIds (ERT)
off, on
Real-Time Workshop > Symbols > Include system hierarchy number in identifiersInclude the system hierarchy number in variable identifiers. For example, 's3_' is the system hierarchy number in rtB.s3_signame for a block output signal named 'signame'. Including the system hierarchy number in identifiers improves the traceability of generated code. To locate the subsystem in which the identifier resides, type hilite_system('<S3>') at the MATLAB prompt. The argument specified with hilite_system requires an uppercase S.
InlinedPrmAccess (ERT)
string - Literals, Macros
Real-Time Workshop > Symbols >
Generate scalar inlined parameters as
Specify whether inlined parameters are coded as numeric constants or macros. Specify Macros for more efficient code.
MangleLength (ERT)
int - 1
Real-Time Workshop > Symbols >
Minimum mangle length
Specify the minimum number of characters to be used for name mangling strings generated and applied to symbols to avoid name collisions. A larger value reduces the chance of identifier disturbance when you modify the model.
ParamNamingRule (ERT)
string - None, UpperCase, LowerCase, Custom
Real-Time Workshop > Symbols >
Parameter naming
Select a rule that changes spelling of all parameter names.
PrefixModelToSubsysFcnNames (ERT)
off, on
Real-Time Workshop > Symbols > Prefix model name to global identifiersAdd the model name as a prefix to subsystem function names for all code formats. When appropriate for the code format, also add the model name as a prefix to top-level functions and data structures. This prevents compiler errors due to name clashes when combining multiple models.
SignalNamingRule (ERT)
string - None, UpperCase, LowerCase, Custom
Real-Time Workshop > Symbols > Signal namingSpecify a rule the code generator is to use that changes spelling of all signal names.

Command-Line Information: Real-Time Workshop Pane: Interface Tab

Parameter and ValuesConfiguration Parameters Dialog Box EquivalentDescription
CombineOutputUpdateFcns (ERT)
string - off, on
Real-Time Workshop > Interface > Single output/update functionGenerate a model's output and update routines into a single-step function.
ERTMaxMultiwordLength (ERT)
int - 256
Real-Time Workshop > Interface > Maximum word lengthSpecify a maximum word length, in bits, for which the code generation process will generate system-defined multiword types into the file rtwtypes.h. Specifying 0 provides you complete control over type definitions for multiword data types in generated code.
ERTMultiwordTypeDef (ERT)
string - System defined, User defined
Real-Time Workshop > Interface > Multiword type definitionsSpecify whether to use system-defined or user-defined type definitions for multiword data types in generated code.
GenerateAccessMethods (ERT)
string - off, on
Real-Time Workshop > Interface > Parameters and states access methodsGenerate get/set access methods for non-I/O model structures, including states and parameters, in C+ (Encapsulated) model code.
GenerateDestructor (ERT)
string - off, on
Real-Time Workshop > Interface > Generate destructorGenerate a destructor for the model class in C+ (Encapsulated) model code.
GenerateErtSFunction (ERT)
string - off, on
Real-Time Workshop > Interface > Create Simulink (S-Function) blockWrap the generated code inside an S-Function block. This allows you to validate the generated code in a Simulink model.
GenerateIOAccessMethods (ERT)
string - off, on
Real-Time Workshop > Interface > I/O access methodsGenerate access methods for root-level I/O signals (if possible) in C+ (Encapsulated) model code.
GeneratePrivateDataMembers (ERT)
string - off, on
Real-Time Workshop > Interface > Parameters and states members privateSpecify whether to generate non-I/O model structures, including states and parameters, as private data members in C+ (Encapsulated) model code.
GRTInterface (ERT)
string - off, on
Real-Time Workshop > Interface > GRT compatible call interfaceInclude a code interface (wrapper) that is compatible with the GRT target.
IncludeMdlTerminateFcn (ERT)
string - off, on
Real-Time Workshop > Interface >
Terminate function required
Generate a terminate function for the model.
InlineAccessMethods (ERT)
string - off, on
Real-Time Workshop > Interface >
Inline access methods
Inline generated access methods in C+ (Encapsulated) model code.
MatFileLogging (ERT)
string - off, on
Real-Time Workshop > Interface >
MAT-file logging
Generate code that logs data to a MAT-file.
MultiInstanceErrorCode (ERT)
string - None, Warning, Error
Real-Time Workshop > Interface >
Reusable code error diagnostic
Specify the error diagnostic behavior for cases when data defined in the model violates the requirements for generation of reusable code.
MultiInstanceERTCode (ERT)
string - off, on
Real-Time Workshop > Interface >
Reusable code error diagnostic
Specify the error diagnostic behavior for cases when data defined in the model violates the requirements for generation of reusable code.
PortableWordSizes (ERT)
string - off, on
Real-Time Workshop > Interface > Enable portable word sizesSpecify that model code should be generated with conditional processing macros that allow the same generated source code files to be used both for software-in-the-loop (SIL) testing on the host platform and for production deployment on the target platform.
PurelyIntegerCode (ERT)
string - off, on
Real-Time Workshop > Interface >
floating-point numbers
Support floating-point data types in the generated code. This option is forced on when SupportNonInlinedSFcns is on.
RootIOFormat (ERT)
string - Individual arguments, Structure reference
Real-Time Workshop > Interface > Pass root-level I/O asSpecify how the code generator is to pass root-level I/O data into a reusable function.
SupportAbsoluteTime (ERT)
string - off, on
Real-Time Workshop > Interface >
absolute time
Support absolute time in the generated code. Blocks such as the Discrete Integrator might require absolute time.
SupportComplex (ERT)
string - off, on
Real-Time Workshop > Interface >
complex numbers
Support complex data types in the generated code.
SupportContinuousTime (ERT)
string - off, on
Real-Time Workshop > Interface >
continuous time
Support continuous time in the generated code. This allows blocks to be configured with a continuous sample time. Not available if SuppressErrorStatus is on.
SupportNonFinite (ERT)
string - off, on
Real-Time Workshop > Interface >
nonfinite numbers
Support nonfinite values (inf, nan, -inf) in the generated code. This option is forced on when SupportNonInlinedSFcns is on.
SuppressErrorStatus (ERT)
string - off, on
Real-Time Workshop > Interface >
Suppress error status in real-time model data structure
Remove the error status field of the real-time model data structure to preserve memory. When on, SupportContinuousTime is off.

Command-Line Information: Real-Time Workshop Pane: Code Style Tab

Parameter and ValuesConfiguration Parameters Dialog Box EquivalentDescription
ParenthesesLevel (ERT)
string - Minimum, Nominal, Maximum
Real-Time Workshop > Code Style > Parentheses LevelControl existence of optional parentheses in generated code.
PreserveExpressionOrder (ERT)
string - off, on
Real-Time Workshop > Code Style > Preserve operand order in expressionControl reordering of commutable expressions.
PreserveIfCondition (ERT)
string - off, on
Real-Time Workshop > Code Style > Preserve condition expression in if statementControl preservation of if statement conditions.

Command-Line Information: Real-Time Workshop Pane: Templates Tab

Parameter and ValuesConfiguration Parameters Dialog Box EquivalentDescription
ERTCustomFileTemplate (ERT)
string - example_file_process.tlc
Real-Time Workshop > Templates > File customization templateSpecify a TLC callback script for customizing the generated code.
ERTDataHdrFileTemplate (ERT)
string - ert_code_template.cgt
Real-Time Workshop > Templates >
Header file (*.h) template
Specify a template that organizes the generated data .h header files.
ERTDataSrcFileTemplate (ERT)
string - ert_code_template.cgt
Real-Time Workshop > Templates >
Source file (*.c or *.cpp) template
Specify a template that organizes the generated data .c source files.
ERTHdrFileBannerTemplate (ERT)
string - ert_code_template.cgt
Real-Time Workshop > Templates >
Header file (*.h) template
Specify a template that organizes the generated code .h header files.
ERTSrcFileBannerTemplate (ERT)
string - ert_code_template.cgt
Real-Time Workshop > Templates >
Source file (*.c or *.cpp) template
Specify a template that organizes the generated code .c or .cpp source files.
GenerateSampleERTMain (ERT)
string - off, on
Real-Time Workshop > Templates >
Generate an example main program
Generate an example main program that demonstrates how to deploy the generated code. The program is written to the file ert_main.c or ert_main.cpp.
TargetOS (ERT)
string - BareBoardExample, VxWorksExample
Real-Time Workshop > Templates >
Target operating system
Specify the target operating system for the example main ert_main.c or ert_main.cpp. BareBoardExample is a generic example that assumes no operating system. VxWorksExample is tailored to the VxWorks[a] real-time operating system.

[a] VxWorks is a registered trademark of Wind River Systems, Inc.

Command-Line Information: Real-Time Workshop Pane: Data Placement Tab

Parameter and ValuesConfiguration Parameters Dialog Box EquivalentDescription
DataDefinitionFile (ERT)
string - global.c
Real-Time Workshop > Data Placement > Data definition filenameSpecify the name of a single separate .c or .cpp file that contains global data definitions.
DataReferenceFile (ERT)
string - global.h
Real-Time Workshop > Data Placement > Data declaration filenameSpecify the name of a single separate .c or .cpp file that contains global data references.
GlobalDataDefinition (ERT)
string - Auto, InSourceFile, InSeparateSourceFile
Real-Time Workshop > Data Placement > Data definitionSelect the .c or .cpp file where variables of global scope are defined.
GlobalDataReference (ERT)
string - Auto, InSourceFile, InSeparateHeaderFile
Real-Time Workshop > Data Placement > Data declarationSelect the .h file where variables of global scope are declared (for example, extern real_T globalvar;).
IncludeFileDelimiter (ERT)
string - Auto, UseQuote, UseBracket
Real-Time Workshop > Data Placement > #include file delimiterSpecify the delimiter to be used for all data objects that do not have a delimiter specified in the IncludeFile property.
ModuleName (ERT)
string - ''
Real-Time Workshop > Data Placement > Module nameSpecify the name of the module that owns this model.
ModuleNamingRule (ERT)
string - Unspecified, SameAsModel, UserSpecified
Real-Time Workshop > Data Placement > Module namingSpecify the rule to be used for naming the module.
ParamTuneLevel (ERT)
int - 10
Real-Time Workshop > Data Placement > Parameter tune levelSpecify whether the code generator is to declare a parameter data object as tunable global data in the generated code.
SignalDisplayLevel (ERT)
int - 10
Real-Time Workshop > Data Placement > Signal display levelSpecify whether the code generator is to declare a signal data object as global data in the generated code.

Command-Line Information: Real-Time Workshop Pane: Data Type Replacement Tab

Parameter and ValuesConfiguration Parameters Dialog Box EquivalentDescription
EnableUserReplacementTypes (ERT)
string - off, on
Real-Time Workshop > Data Type ReplacementSpecify whether to replace built-in data type names with user-defined data type names in generated code.
ReplacementTypes (ERT)
string - ''
Real-Time Workshop > Data Type Replacement > Data type namesSpecify names to use for built-in data types in generated code.

Command-Line Information: Real-Time Workshop Pane: Memory Sections Tab

Parameter and ValuesConfiguration Parameters Dialog Box EquivalentDescription
MemSecPackage (ERT)
string - --- None ---, Simulink, mpt
Real-Time Workshop > Memory Sections > PackageSpecify the package that contains the memory sections that you want to apply.
MemSecFuncInitTerm (ERT)
string - Default, MemConst, MemVolatile, MemConstVolatile
Real-Time Workshop > Memory Sections > Initialize/TerminateApply memory sections to:
  • Initialize/Start functions

  • Terminate functions

MemSecFuncExecute (ERT)
string - Default, MemConst, MemVolatile, MemConstVolatile
Real-Time Workshop > Memory Sections > ExecutionApply memory sections to:
  • Step functions

  • Run-time initialization functions

  • Derivative functions

  • Enable functions

  • Disable functions

MemSecDataConstants (ERT)
string - Default, MemConst, MemVolatile, MemConstVolatile
Real-Time Workshop > Memory Sections > ConstantsApply memory sections to:
  • Constant parameters

  • Constant block I/O

  • Zero representation

MemSecDataIO (ERT)
string - Default, MemConst, MemVolatile, MemConstVolatile
Real-Time Workshop > Memory Sections > Inputs/OutputsApply memory sections to:
  • Root inputs

  • Root outputs

MemSecDataInternal (ERT)
string - Default, MemConst, MemVolatile, MemConstVolatile
Real-Time Workshop > Memory Sections > Internal dataApply memory sections to:
  • Block I/O

  • DWork vectors

  • Run-time model

  • Zero-crossings

MemSecDataParameters (ERT)
string - Default, MemConst, MemVolatile, MemConstVolatile
Real-Time Workshop > Memory Sections > ParametersApply memory sections to:
  • Parameters

Command-Line Information: Not in GUI

Parameter and ValuesConfiguration Parameters Dialog Box EquivalentDescription
CPPClassGenCompliant (ERT)
string - off, on
Not availableSet in SelectCallback for a target to indicate whether the target supports the ability to generate and configure C++ encapsulation interfaces to model code. Default is off for custom and non-ERT targets and on for ERT (ert.tlc) targets.
ERTFirstTimeCompliant (ERT)
string - off, on
Not availableSet in SelectCallback for a target to indicate whether the target supports the ability to control inclusion of the firstTime argument in the model_initialize function generated for a Simulink model. Default is off for custom and non-ERT targets and on for ERT targets.
IncludeERTFirstTime (ERT)
string - off, on
Not availableSpecify whether Real-Time Workshop Embedded Coder software is to include the firstTime argument in the model_initialize function generated for a Simulink model.
ModelStepFunctionPrototypeControlCompliant (ERT)
string - off, on
Not availableSet in SelectCallback for a target to indicate whether the target supports the ability to control the function prototypes of initialize and step functions that are generated for a Simulink model. Default is off for non-ERT targets and on for ERT targets.


[a] VxWorks is a registered trademark of Wind River Systems, Inc.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS