Main Content

getOutport

Get AUTOSAR mapping information for Simulink outport

Description

[arPortName,arDataElementName,arDataAccessMode] = getOutport(slMap,slPortName) returns the values of the AUTOSAR provider port arPortName, AUTOSAR data element arDataElementName, and AUTOSAR data access mode arDataAccessMode mapped to Simulink® outport slPortName.

example

Examples

collapse all

Get AUTOSAR mapping information for a model outport in the example model autosar_swc_expfcns. The model has an outport named PPort_DE1.

hModel = 'autosar_swc_expfcns';
openExample(hModel);
slMap=autosar.api.getSimulinkMapping(hModel);
[arPortName,arDataElementName,arDataAccessMode]=getOutport(slMap,'PPort_DE1')
arPortName =
PPort

arDataElementName =
DE1

arDataAccessMode =
ImplicitSend

Input Arguments

collapse all

Simulink to AUTOSAR mapping information for a model, previously returned by slMap = autosar.api.getSimulinkMapping(model). model is a handle, character vector, or string scalar representing the model name.

Example: slMap

Name of the model outport for which to return AUTOSAR mapping information.

Example: 'Output'

Output Arguments

collapse all

Variable that returns the name of the AUTOSAR port mapped to the specified Simulink outport.

Example: arPortName

Variable that returns the name of the AUTOSAR data element mapped to the specified Simulink outport.

Example: arDataElementName

Variable that returns the value of the AUTOSAR data access mode mapped to the specified Simulink outport. The value can be ImplicitSend, ImplicitSendByRef, ExplicitSend, EndToEndWrite, ModeSend, or QueuedExplicitSend.

Example: arDataAccessMode

Version History

Introduced in R2013b