getSections
Class: coder.Dictionary
Namespace: coder
Return coder.dictionary.Section
objects of an Embedded Coder
Dictionary
Syntax
sections = getSections(coderDictionaryObj)
Description
returns the sections
= getSections(coderDictionaryObj
)coder.dictionary.Section
objects contained in the Embedded Coder Dictionary that
coderDictionaryObj
represents. Use the section objects to access code
definitions of different types identified by the section names.
Input Arguments
coderDictionaryObj
— Embedded Coder Dictionary
coder.Dictionary
object
Embedded Coder Dictionary, specified as a coder.Dictionary
object. Before
you use this function, represent the dictionary with a
coder.Dictionary
object by using, for example, the coder.dictionary.create
function or the coder.dictionary.open
function.
Output Arguments
sections
— Sections of Embedded Coder Dictionary
array of coder.dictionary.Section
objects
Sections of the Embedded Coder Dictionary, returned as an array of
coder.dictionary.Section
objects. 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
Examples
Access Sections in Embedded Coder Dictionary
Open the model RollAxisAutopilot
and represent the Embedded Coder
Dictionary by using a coder.Dictionary
object. Assign the
coder.Dictionary
object to the variable
coderDictObj
.
openExample("RollAxisAutopilot") coderDictObj = coder.dictionary.open("RollAxisAutopilot")
coderDictObj = Dictionary with Sections: StorageClasses: [1×1 coder.dictionary.Section] MemorySections: [1×1 coder.dictionary.Section] FunctionCustomizationTemplates: [1×1 coder.dictionary.Section]
Access the sections of the dictionary by using an array of the corresponding
coder.dictionary.Section
objects.
sectionsArray = getSections(coderDictObj)
sectionsArray = 1×3 Section array with properties: Name
Use each coder.dictionary.Section
object to access the entries in
that section of the dictionary. The first section contains entries that represent
function customization template definitions.
sectObj = sectionsArray(1)
sectObj = Section with properties: Name: 'FunctionCustomizationTemplates'
Version History
Introduced in R2019bR2024a: Changes in service interfaces dictionary sections
Constants
andInternalData
are new dictionary sections.The dictionary sections
SubcomponentInitTermFunctions
andSubcomponentPeriodicAperiodicFunctions
replace the sectionSubcomponentEntryFunctions
.
R2023b: Support for service interface configurations
Access the sections of Embedded Coder Dictionaries that use the service interface configuration. You can still access sections in Embedded Coder Dictionaries that use the data interface configuration.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)