主要内容

mapInport

地图金宝app轮廓尺寸AUTOSAR港口

描述

例子

mapInport (slMap,slPortName,arPortName,arDataElementName,arDataAccessMode)将模型映射金宝app®轮廓尺寸slPortNameAUTOSAR的数据元素arDataElementName在AUTOSAR接收机端口arPortName。AUTOSAR数据访问模式接收机端口设置为arDataAccessMode

例子

全部折叠

设置AUTOSAR映射信息模型尺寸的示例模型autosar_swc_expfcns。模型尺寸命名RPort_DE1。这个例子中改变了AUTOSAR数据访问模式RPort_DE1ImplicitReceiveExplicitReceive

hModel =“autosar_swc_expfcns”;目录(fullfile (matlabroot,' / / autosarblockset /主要的例子));open_system (hModel);slMap = autosar.api.g金宝appetSimulinkMapping (hModel);mapInport (slMap“RPort_DE1”,“RPort”,“DE1”,“ExplicitReceive”);[arPortName, arDataElementName arDataAccessMode] = getInport (slMap,“RPort_DE1”)
arPortName = RPort arDataElementName = DE1 arDataAccessMode = ExplicitReceive

输入参数

全部折叠

金宝app模型仿真软件对AUTOSAR映射信息,之前返回slMap= autosar.api.get金宝appSimulinkMapping (模型)模型是一个处理,特征向量,或字符串标量表示模型的名字。

例子:slMap

名字的模型尺寸设置AUTOSAR映射信息。

例子:“输入”

AUTOSAR的港口名称映射指定的模型尺寸。金宝app

例子:“输入”

AUTOSAR的数据元素名称映射指定的模型尺寸。金宝app

例子:“输入”

AUTOSAR的价值数据访问模式映射指定的模型尺寸。金宝app价值可以ImplicitReceive,ExplicitReceive,QueuedExplicitReceive,ErrorStatus,ModeReceive,IsUpdated,EndToEndRead,或ExplicitReceiveByVal

例子:“ExplicitReceive”

版本历史

介绍了R2013b