Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop Embedded Coder   

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.

Inputs

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'

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.
'ErrorStatus'The 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.
'BasicSoftwarePort'The 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.

See Also

Using the Configure AUTOSAR Interface Dialog Box and Configuring Ports for Basic Software and Error Status Receivers in the Real-Time Workshop Embedded Coder documentation

  


Related Products & Applications

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

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