getPlatformProperties
Description
[
returns AUTOSAR Classic platform-specific properties and their values for the specified
dictionary element. Specified dictionary elements can be a data interface object or data
element object.propNames
,propVals
] = getPlatformProperties(platformMapping
,dictElementObj
)
Examples
Get AUTOSAR Data Interface Properties
To get the platform-specific properties for a data interface, such as
what kind of AUTOSAR communication interface is defined and the path to the element
package for the specified data interface, use the
getPlatformProperties
function. For an example that shows more of
the workflow for related functions, see Configure AUTOSAR Classic Data Interface and Properties in Data Dictionary.
archDataObj = Simulink.dictionary.archdata.open("MyInterfaces.sldd"); platformMapping = getPlatformMapping(archDataObj,"AUTOSARClassic"); interfaceObj = getInterface(archDataObj,"DataInterface"); [propNames,propValues] = ... getPlatformProperties(platformMapping,interfaceObj)
propNames = 1×3 cell array {'IsService'} {'Package'} {'InterfaceKind'} propValues = 1×3 cell array {[0]} {'/Interfaces'} {'SenderReceiverInterface'}
Get AUTOSAR Data Element Properties
To get the platform-specific properties for a data element in the
data interface, such as SwAddrMethod information for the specified data element, use the
getPlatformProperties
function. For an example that shows more of
the workflow for related functions, see Configure AUTOSAR Classic Data Interface and Properties in Data Dictionary.
archDataObj = Simulink.dictionary.archdata.open("MyInterfaces.sldd"); platformMapping = getPlatformMapping(archDataObj,"AUTOSARClassic"); interfaceObj = getInterface(archDataObj,"DataInterface"); dataElementObj = getElement(interfaceObj,"DE1"); [propNames,propValues] = ... getPlatformProperties(platformMapping,dataElementObj)
propNames = 1×3 cell array {'SwAddrMethod'} {'SwCalibrationAccess'} {'DisplayFormat'} propValues = 1×3 cell array {'VAR1'} {'ReadWrite'} {'%.3f'}
Input Arguments
platformMapping
— Platform mapping object
autosar.dictionary.ARClassicPlatformMapping
object
Platform mapping object, specified as an autosar.dictionary.ARClassicPlatformMapping
object.
dictElementObj
— Element in dictionary object
Simulink.dictionary.archdata.DataInterface
object | Simulink.dictionary.archdata.DataElement
object
Element in a dictionary object from which you access the AUTOSAR
platform-specific properties and values, specified as a Simulink.dictionary.archdata.DataInterface
object or
Simulink.dictionary.archdata.DataElement
object.
The argument can be a data interface object, which is returned by a previous
call to addDataInterface
or getInterface
, or a data element object, which is
returned by a previous call to addElement
or getElement
.
Output Arguments
propNames
— Property names
cell array of character vectors | string array
Property names in selected dictionary element and platform mapping, specified as a cell array of character vectors or a string array.
For data interface objects, AUTOSAR properties include
'IsService'
, 'Package'
, and
'InterfaceKind'
.
For data element objects, AUTOSAR properties include
'SwAddrMethod'
,
'SwCalibrationAccess'
, and
'DisplayFormat'
.
propVals
— Property values
cell array of character vectors | string array
Property values in selected dictionary element and platform mapping, specified as a cell array of character vectors or a string array.
For data interface objects, returned properties include:
Property | Return Value |
---|---|
IsService | Set as true for service
interfaces. Returned as a
Boolean . |
Package | Fully-qualified path to the element
package. Returned as a character
vector . |
InterfaceKind | AUTOSAR communication interface. Returned
as a character vector . Valid
values are
"SenderReceiverInterface" ,
"NvDataInterface" , and
"ModeSwitchInterface" . |
For data element objects, returned properties include:
Property | Return Value |
---|---|
SwAddrMethod | Name of previously defined software address
method. Returned as a character
vector . |
SwCalibrationAccess | Calibration and measurement tool access to
a data object. Returned as a character
vector . Valid values are
"ReadOnly" ,
"ReadWrite" , and
"NotAccessible" . |
DisplayFormat | AUTOSAR display format specification.
Returned as a character
vector . |
Version History
Introduced in R2022b
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)