Skip to Main Content Skip to Search
Product Documentation

addIOConf - Class: RTW.AutosarInterface
Package: RTW

Add AUTOSAR I/O configuration to model

Syntax

autosarInterfaceObj.addIOConf(SimulinkPort, DataAccessMode, autosarPort, InterfaceName, DataElement)
autosarInterfaceObj.addIOConf(SimulinkErrorStatusPort, 'ErrorStatus', CorrespondingSimulinkReceiverPort)
autosarInterfaceObj.addIOConf(SimulinkBasicSoftwarePort, 'BasicSoftwarePort', ServiceName, ServiceOperation, ServiceInterfacePath)

Description

You can designate inports and outports to be data sender/receiver ports, error status receivers, or access points to AUTOSAR Basic Software using the method addIOConf:

autosarInterfaceObj.addIOConf(SimulinkPort, DataAccessMode, autosarPort, InterfaceName, DataElement)

autosarInterfaceObj.addIOConf(SimulinkErrorStatusPort, 'ErrorStatus', CorrespondingSimulinkReceiverPort)

autosarInterfaceObj.addIOConf(SimulinkBasicSoftwarePort, 'BasicSoftwarePort', ServiceName, ServiceOperation, ServiceInterfacePath)

Each call adds an AUTOSAR I/O configuration to autosarInterfaceObj, a model-specific RTW.AutosarInterface object.

Input Arguments

SimulinkPortInport/outport name (string)
DataAccessModeData access mode of the port. You can designate inports and outports to be data sender/receiver ports by specifying DataAccessMode to be one of the following:
  • ImplicitSend

  • ImplicitReceive

  • ExplicitSend

  • ExplicitReceive

  • QueuedExplicitReceive

Use Implicit... where data is buffered by the run-time environment (RTE), or Explicit... where data is not buffered and hence not deterministic.

autosarPortAUTOSAR port name (string)
InterfaceNameInterface name (string)
DataElementData element name (string)
SimulinkErrorStatusPortThe port you choose to receive error status.
ErrorStatusThe data access mode for ports chosen to be error status receivers.
CorrespondingSimulinkReceiverPortThe port that is listened to for error status. The data access mode for this port must be either ImplicitReceive or ExplicitReceive.
SimulinkBasicSoftwarePortThe port that you specify as an access point to AUTOSAR Basic Software.
BasicSoftwarePortThe data access mode for ports chosen to be access points to AUTOSAR Basic Software.
ServiceNameThe service name you specify. Must be a valid AUTOSAR identifier.
ServiceOperationThe service operation you specify. Must be a valid AUTOSAR identifier.
ServiceInterfacePathThe service interface you specify. Must be a valid path of the form AUTOSAR/Service/servicename.

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS