getSection
Class: coder.Dictionary
Namespace: coder
Return coder.dictionary.Section
object that represents Embedded
Coder Dictionary section
Since R2019b
Syntax
sectionObj = getSection(coderDict,sectionName)
Description
returns a sectionObj
= getSection(coderDict
,sectionName
)coder.dictionary.Section
object that represents one section,
sectionName
, of an Embedded Coder Dictionary, which
coderDict
represents. Use the section to access the code definitions of
the type identified by the section name.
Input Arguments
coderDict
— Embedded Coder Dictionary containing section
coder.Dictionary
object
Embedded Coder® Dictionary that contains the section you want to access, specified as a
coder.Dictionary
object.
sectionName
— Name of section
string scalar | character vector
Name of the section you want to access in the Embedded Coder Dictionary, specified as a string scalar or character vector. The section name identifies the type of code definitions that the section contains. 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"
Output Arguments
sectionObj
— Embedded Coder Dictionary section
coder.dictionary.Section
object
Section in the Embedded Coder Dictionary, returned as a
coder.dictionary.Section
object. The section contains coder.dictionary.Entry
objects that represent code definitions of the type
identified by sectionName
.
Examples
Access Storage Classes 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]
Represent the Storage Classes section of the Embedded Coder Dictionary by using a
coder.dictionary.Section
object named
SCSectObj
.
SCSectObj = getSection(coderDictObj,"StorageClasses")
SCSectObj = Section with properties: Name: 'StorageClasses'
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.
See Also
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
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)