Main Content

coder.dictionary.Section Class

Namespace: coder.dictionary

Configure Embedded Coder Dictionary section

Description

An object of the coder.dictionary.Section class represents one section of an Embedded Coder Dictionary, such as Storage Classes or Data Sender Services. The object enables you to perform operations on the section such as adding or deleting entries.

A coder.Dictionary object contains coder.dictionary.Section objects, which represent the categories of an Embedded Coder Dictionary. A coder.dictionary.Section object contains coder.dictionary.Entry objects, which represent the definitions stored in that section of the Embedded Coder Dictionary. The name of the section identifies the type of code definitions that the section contains. To access the sections of an Embedded Coder Dictionary, use a coder.Dictionary object. To access the dictionary entries within the section, use a coder.dictionary.Section object.

Creation

The function getSection creates a coder.dictionary.Section object.

Properties

expand all

This property is read-only.

Name of Embedded Coder® Dictionary Section, stored as a character vector. This property is read-only. The sections in the dictionary depend on the code interface configuration type of the dictionary.

A service interface configuration contains these sections:

  • 'InitTermFunctions'

  • 'PeriodicAperiodicFunctions'

  • 'DataReceiverInterfaces'

  • 'DataSenderInterfaces'

  • 'DataTransferInterfaces'

  • 'TimerInterfaces'

  • 'ParameterTuningInterfaces'

  • 'ParameterArgumentTuningInterfaces'

  • 'MeasurementInterfaces'

  • 'SubcomponentInitTermFunctions'

  • 'SubcomponentPeriodicAperiodicFunctions'

  • 'SharedUtilityFunctions'

  • 'InternalData'

  • 'Constants'

  • 'StorageClasses'

  • 'DataMemorySections'

  • 'FunctionMemorySections'

A data interface configuration contains these sections:

  • 'StorageClasses'

  • 'MemorySections'

  • 'FunctionCustomizationTemplates'

Methods

expand all

Examples

collapse all

Open the model RollAxisAutopilot and represent the Embedded Coder Dictionary by using the coder.Dictionary object coderDictionary.

openExample("RollAxisAutopilot")
coderDictionary = coder.dictionary.open("RollAxisAutopilot");

Create a coder.dictionary.Section object that represents the Memory Sections section of the Embedded Coder Dictionary.

memorySectionsSect = getSection(coderDictionary, "MemorySections")
memorySectionsSect = 

  Section with properties:

    Name: 'MemorySections'

The section contains coder.dictionary.Entry objects, each of which represents a built-in memory section definition.

Version History

Introduced in R2019b

expand all