帮助中心帮助中心
AUTOSAR元素的属性
pValue =得到(arProps elementPath,属性)
例子
pValue= (arProps,elementPath,财产)返回AUTOSAR元素的指定属性的值elementPath。
pValue= (arProps,elementPath,财产)
pValue
arProps
elementPath
财产
全部折叠
一个模型,得到的值IsService财产sender-receiver接口Interface1。的变量IsService返回假(0),这表明sender-receiver接口服务。
IsService
Interface1
假
hModel =“autosar_swc_expfcns”;openExample (hModel);arProps = autosar.api.getAUTOSARProperties (hModel);isService =得到(arProps,“Interface1”,“IsService”)
isService =逻辑0
AUTOSAR的模型,为设置做准备象征财产可运行Runnable1来test_symbolAUTOSAR的组件名称限定名称和现有运行的象征。
象征
Runnable1
test_symbol
hModel =“autosar_swc_expfcns”;openExample (hModel);arProps = autosar.api.getAUTOSARProperties (hModel);compQName =得到(arProps,“XmlOptions”,“ComponentQualifiedName”);可运行=找到(arProps compQName,可运行的,“PathType”,“FullyQualified”);runnable (2)
ans = 1×1单元阵列{' / pkg / swc / ASWC / IB / Runnable1 '}
得到(arProps runnable {2},“象征”)
ans = ' Runnable1 '
集(arProps runnable, {2},“象征”,“test_symbol”)得到(arProps runnable {2},“象征”)
ans = ' test_symbol '
AUTOSAR属性信息模型,之前返回arProps= autosar.api.getAUTOSARProperties (模型)。模型是一个处理,特征向量,或字符串标量表示模型的名字。
arProps= autosar.api.getAUTOSARProperties (模型)
模型
例子:arProps
路径的AUTOSAR元素返回属性的值。
例子:“输入”
“输入”
属性返回一个值,在有效的AUTOSAR元素的属性。
例子:“IsService”
“IsService”
变量返回指定的AUTOSAR属性的值。复合属性或属性引用的其他属性,返回值是属性的路径。
例子:ifPaths
ifPaths
介绍了R2013b
autosar.api.getAUTOSARProperties|集
autosar.api.getAUTOSARProperties
集
你点击一个链接对应MATLAB命令:
运行该命令通过输入MATLAB命令窗口。Web浏览器不支持MATLAB命令。金宝app
选择一个网站
选择一个网站翻译内容,看到当地事件和提供。根据你的位置,我们建议您选择:。
你也可以从下面的列表中选择一个网站:
选择中国网站(中文或英文)最佳站点的性能。其他MathWorks国家网站不优化的访问你的位置。
联系你当地的办公室