| Real-Time Workshop® Embedded Coder™ | |
| On this page… |
|---|
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 Parameter | Debugging | Traceability | Efficiency | Safety Precaution | Factory Default |
|---|---|---|---|---|---|
No impact | No impact | Optimal finite value | inf | 1 for ERT targets | |
No impact | Hierarchical | NonHierarchical | No impact | NonHierarchical | |
No impact | No impact | On | Off | Off | |
No impact | No impact | On | Off | Off | |
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 Parameter | Debugging | Traceability | Efficiency | Safety Precaution | Factory Default |
|---|---|---|---|---|---|
No impact | No impact | No impact | No impact | Off |
Mapping of Application Requirements to the Real-Time Workshop Pane: Report Tab
| Configuration Parameter | Debugging | Traceability | Efficiency | Safety Precaution | Factory 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 Parameter | Debugging | Traceability | Efficiency | Safety Precaution | Factory Default |
|---|---|---|---|---|---|
On | On | No impact | No impact | Off | |
On | On | No impact | No impact | Off | |
On | On | No impact | No impact | Off | |
Any valid file name | Any valid file name | No impact | No impact | '' | |
On | On | No impact | No impact | Off | |
On | On | No impact | On | Off |
Mapping of Application Requirements to the Real-Time Workshop Pane: Symbols Tab
| Configuration Parameter | Debugging | Traceability | Efficiency | Safety Precaution | Factory Default |
|---|---|---|---|---|---|
No impact | Any valid combination of tokens | No impact | $R$N$M | $R$N$M | |
No impact | Any valid combination of tokens | No impact | $N$R$M | &N$R$M | |
No impact | Any valid combination of tokens | No impact | $N$M | $N$M | |
No impact | Any valid combination of tokens | No impact | $R$N$M$F | $R$N$M$F | |
No impact | Any valid combination of tokens | No impact | $N$M | $N$M | |
No impact | Any valid combination of tokens | No impact | rtb_$N$M | rtb_$N$M | |
No impact | Any valid combination of tokens | No impact | $R$N$M | $R$N$M | |
No impact | 1 | No impact | 4 | 1 | |
No impact | Macros | Literals | No impact | Literals | |
No impact | Force uppercase | No impact | No impact | None | |
No impact | Force uppercase | No impact | No impact | None | |
No impact | Force uppercase | No impact | No impact | None | |
No impact | No impact | No impact | No impact | '' |
Mapping of Application Requirements to the Real-Time Workshop Pane: Interface Tab
| Configuration Parameter | Debugging | Traceability | Efficiency | Safety Precaution | Factory Default |
|---|---|---|---|---|---|
No impact | No impact | Off for integer only | No impact | On | |
No impact | No impact | Off for real only | No impact | On | |
No impact | No impact | Off | Off | On | |
No impact | No impact | Off | Off | On | |
No impact | No impact | Off | Off | Off | |
No impact | No impact | Off | Off | Off | |
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 | |
No impact | No impact | Smaller values reduce the size of the generated file rtwtypes.h | Use default | 256 | |
No impact | Off | Off | Off | Off | |
On | On | On | On | On | |
No impact | No impact | Off | Off | On | |
No impact | No impact | Set for single instance | No impact | Off | |
Warning or Error | No impact | None | No impact | Error | |
No impact | No impact | No impact | No impact | Individual arguments | |
No impact | No impact | No impact | On | On | |
On | No impact | No impact | Off | Off | |
No impact | No impact | No impact | Off | On | |
On | No impact | No impact | Off | Off | |
On | On | On | No impact | Off | |
Off | No impact | On | On | Off | |
On | No impact | No impact | No impact | Off | |
On | On | Off | No impact | Off | |
On | No impact | Off | Off | Off |
Mapping of Application Requirements to the Real-Time Workshop Pane: Code Style Tab
| Configuration Parameter | Debugging | Traceability | Efficiency | Safety Precaution | Factory Default |
|---|---|---|---|---|---|
| Parentheses level | Nominal (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 expression | On | On | Off | On | Off |
| Preserve condition expression in if statement | On | On | Off | Off | Off |
Mapping of Application Requirements to the Real-Time Workshop Pane: Templates Tab
| Configuration Parameter | Debugging | Traceability | Efficiency | Safety Precaution | Factory Default |
|---|---|---|---|---|---|
| Code templates: Source file (*.c) template | No impact | No impact | No impact | No impact | ert_code_template.cgt |
| Code templates: Header file (*.h) template | No impact | No impact | No impact | No impact | ert_code_template.cgt |
| Data templates: Source file (*.c) template | No impact | No impact | No impact | No impact | ert_code_template.cgt |
| Data templates: Header file (*.h) template | No impact | No impact | No impact | No impact | ert_code_template.cgt |
| File customization template | No impact | No impact | No impact | No impact | example_file_process.tlc |
| Generate an example main program | No impact | No impact | No impact | No impact | On |
| Target operating system | No impact | No impact | No impact | No impact | BareBoardExample |
Mapping of Application Requirements to the Real-Time Workshop Pane: Data Placement Tab
| Configuration Parameter | Debugging | Traceability | Efficiency | Safety Precaution | Factory Default |
|---|---|---|---|---|---|
No impact | Any valid value | No impact | No impact | Auto | |
No impact | Any valid value | No impact | No impact | global.c | |
No impact | Any valid value | No impact | No impact | Auto | |
No impact | Any valid value | No impact | No impact | global.h | |
No impact | Any valid value | No impact | No impact | Auto | |
No impact | Any valid value | No impact | No impact | Not specified | |
No impact | Any valid value | No impact | No impact | '' | |
No impact | Any valid integer | No impact | No impact | 10 | |
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 Parameter | Debugging | Traceability | Efficiency | Safety Precaution | Factory Default |
|---|---|---|---|---|---|
| Replace data type names in the generated code | No impact | On | No impact | Off | Off |
| Replacement Name | No impact | Any valid string | No impact | '' | '' |
Mapping of Application Requirements to the Real-Time Workshop Pane: Memory Sections Tab
| Configuration Parameter | Debugging | Traceability | Efficiency | Safety Precaution | Factory Default |
|---|---|---|---|---|---|
| Package | No impact | No impact | No impact | No impact | ---None--- |
| Initialize/Terminate | No impact | No impact | No impact | No impact | Default |
| Execution | No impact | No impact | No impact | No impact | Default |
| Constants | No impact | No impact | No impact | No impact | Default |
| Inputs/Outputs | No impact | No impact | No impact | No impact | Default |
| Internal data | No impact | No impact | No impact | No impact | Default |
| Parameters | No impact | No impact | No impact | No impact | Default |
| Validation results | No impact | No impact | No impact | No impact | Package and memory sections found. |
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.
Note Parameters that are specific to the ERT target or targets based on the ERT target, the Stateflow® product, or the Fixed-Point Toolbox™ product are marked with (ERT), (Stateflow®), and (Fixed-Point Toolbox), respectively. To set the values of parameters marked with (ERT), you must specify an ERT or ERT-based target for your configuration set. Also, note that the default setting for a parameter might vary for different targets. Parameters marked with (ERT) are listed with ERT target defaults. |
Command-Line Information: Optimization Pane
| Parameter and Values | Configuration Parameters Dialog Box Equivalent | Description |
|---|---|---|
| DataBitsets (Stateflow) off, on | Optimization > Use bitsets for storing boolean data | Use bit sets for storing Boolean data. |
| InlinedParameterPlacement (ERT) Hierarchical, NonHierarchical | Optimization > Parameter structure | Specify 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 exceptions | Suppress generation of code that guards against division by zero for fixed-point data. |
| OptimizeModelRefInitCode (ERT) off, on | Optimization > Optimize initialization code for model reference | Suppress 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 configuration | Use bit sets for storing state configuration. |
| ZeroExternalMemoryAtStartup (ERT) off, on | Optimization > Remove root level I/O zero initialization | Suppress code that initializes root-level I/O data structures to zero. |
| ZeroInternalMemoryAtStartup (ERT) off, on | Optimization > Remove internal data zero initialization | Suppress 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 Values | Configuration Parameters Dialog Box Equivalent | Description |
|---|---|---|
| IgnoreCustomStorageClasses (ERT) string - off, on | Real-Time Workshop > General > Ignore custom storage classes | Treat custom storage classes as 'Auto'. |
Command-Line Information: Real-Time Workshop Pane: Report Tab
| Parameter and Values | Configuration Parameters Dialog Box Equivalent | Description |
|---|---|---|
| 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 Values | Configuration Parameters Dialog Box Equivalent | Description |
|---|---|---|
| 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 Values | Configuration Parameters Dialog Box Equivalent | Description |
|---|---|---|
| CustomSymbolStrBlkIO (ERT) string - rtb_$N$M | Real-Time Workshop > Symbols > Local block output variables | Specify 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 types | Specify 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 variables | Specify 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 variables | Specify 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 types | Specify 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-function | Specify 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 naming | Specify the rule that changes the spelling of all #define names. |
| IncDataTypeInIds (ERT) off, on | Real-Time Workshop > Symbol > Include data type acronym in identifiers | Include 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 identifiers | Include 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 identifiers | Add 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 naming | Specify 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 Values | Configuration Parameters Dialog Box Equivalent | Description |
|---|---|---|
| CombineOutputUpdateFcns (ERT) string - off, on | Real-Time Workshop > Interface > Single output/update function | Generate a model's output and update routines into a single-step function. |
| ERTMaxMultiwordLength (ERT) int - 256 | Real-Time Workshop > Interface > Maximum word length | Specify 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 definitions | Specify 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 methods | Generate 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 destructor | Generate a destructor for the model class in C+ (Encapsulated) model code. |
| GenerateErtSFunction (ERT) string - off, on | Real-Time Workshop > Interface > Create Simulink (S-Function) block | Wrap 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 methods | Generate 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 private | Specify 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 interface | Include 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 sizes | Specify 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 as | Specify 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 Values | Configuration Parameters Dialog Box Equivalent | Description |
|---|---|---|
| ParenthesesLevel (ERT) string - Minimum, Nominal, Maximum | Real-Time Workshop > Code Style > Parentheses Level | Control existence of optional parentheses in generated code. |
| PreserveExpressionOrder (ERT) string - off, on | Real-Time Workshop > Code Style > Preserve operand order in expression | Control reordering of commutable expressions. |
| PreserveIfCondition (ERT) string - off, on | Real-Time Workshop > Code Style > Preserve condition expression in if statement | Control preservation of if statement conditions. |
Command-Line Information: Real-Time Workshop Pane: Templates Tab
| Parameter and Values | Configuration Parameters Dialog Box Equivalent | Description |
|---|---|---|
| ERTCustomFileTemplate (ERT) string - example_file_process.tlc | Real-Time Workshop > Templates > File customization template | Specify 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 Values | Configuration Parameters Dialog Box Equivalent | Description |
|---|---|---|
| DataDefinitionFile (ERT) string - global.c | Real-Time Workshop > Data Placement > Data definition filename | Specify 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 filename | Specify 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 definition | Select the .c or .cpp file where variables of global scope are defined. |
| GlobalDataReference (ERT) string - Auto, InSourceFile, InSeparateHeaderFile | Real-Time Workshop > Data Placement > Data declaration | Select 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 delimiter | Specify 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 name | Specify the name of the module that owns this model. |
| ModuleNamingRule (ERT) string - Unspecified, SameAsModel, UserSpecified | Real-Time Workshop > Data Placement > Module naming | Specify the rule to be used for naming the module. |
| ParamTuneLevel (ERT) int - 10 | Real-Time Workshop > Data Placement > Parameter tune level | Specify 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 level | Specify 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 Values | Configuration Parameters Dialog Box Equivalent | Description |
|---|---|---|
| EnableUserReplacementTypes (ERT) string - off, on | Real-Time Workshop > Data Type Replacement | Specify 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 names | Specify names to use for built-in data types in generated code. |
Command-Line Information: Real-Time Workshop Pane: Memory Sections Tab
| Parameter and Values | Configuration Parameters Dialog Box Equivalent | Description |
|---|---|---|
| MemSecPackage (ERT) string - --- None ---, Simulink, mpt | Real-Time Workshop > Memory Sections > Package | Specify 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/Terminate | Apply memory sections to:
|
| MemSecFuncExecute (ERT) string - Default, MemConst, MemVolatile, MemConstVolatile | Real-Time Workshop > Memory Sections > Execution | Apply memory sections to:
|
| MemSecDataConstants (ERT) string - Default, MemConst, MemVolatile, MemConstVolatile | Real-Time Workshop > Memory Sections > Constants | Apply memory sections to:
|
| MemSecDataIO (ERT) string - Default, MemConst, MemVolatile, MemConstVolatile | Real-Time Workshop > Memory Sections > Inputs/Outputs | Apply memory sections to:
|
| MemSecDataInternal (ERT) string - Default, MemConst, MemVolatile, MemConstVolatile | Real-Time Workshop > Memory Sections > Internal data | Apply memory sections to:
|
| MemSecDataParameters (ERT) string - Default, MemConst, MemVolatile, MemConstVolatile | Real-Time Workshop > Memory Sections > Parameters | Apply memory sections to:
|
Command-Line Information: Not in GUI
| Parameter and Values | Configuration Parameters Dialog Box Equivalent | Description |
|---|---|---|
| CPPClassGenCompliant (ERT) string - off, on | Not available | Set 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 available | Set 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 available | Specify 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 available | Set 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.
![]() | Real-Time Workshop Pane: AUTOSAR Code Generation Options |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |