Documentation

Parameter structure

Description

Control how parameter data is generated for reusable subsystems.

Category: Optimization

Settings

Default:Hierarchical

Hierarchical

Generates a separate header file, defining an independent parameter structure, for each subsystem that meets the following conditions:

  • The subsystemCode generation function packagingparameter is set toReusable function.

  • The subsystem does not violate anycode reuse limitations(金宝app仿真软件编码器)。

  • The subsystem does not access parameters other than its own (such as parameters of the root-level model).

Each subsystem parameter structure is referenced as a substructure of the root-level parameter data structure, creating a structure hierarchy.

NonHierarchical

Generates a single, flat parameter data structure. Subsystem parameters are defined as fields within the structure. A nonhierarchical data structure can reduce compiler padding between word boundaries, producing more efficient compiled code.

Dependencies

  • This parameter appears only for ERT-based targets.

  • This parameter requires a Embedded Coder®license when generating code.

  • This parameter is enabled when you setDefault parameter behaviortoInlined.

Command-Line Information

Parameter:InlinedParameterPlacement
Value:'Hierarchical'|'NonHierarchical'
Default:'Hierarchical'

Recommended Settings

Application Setting
Debugging No impact
Traceability Hierarchical
Efficiency NonHierarchical
Safety precaution No impact

Related Topics

Was this topic helpful?