| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Real-Time Workshop Embedded Coder |
| Contents | Index |
| Learn more about Real-Time Workshop Embedded Coder |
Add AUTOSAR I/O configuration to model
autosarInterfaceObj.addIOConf(SimulinkPort, DataAccessMode, autosarPort, InterfaceName, DataElement)
autosarInterfaceObj.addIOConf(SimulinkErrorStatusPort,
'ErrorStatus', CorrespondingSimulinkReceiverPort)
autosarInterfaceObj.addIOConf(SimulinkBasicSoftwarePort,
'BasicSoftwarePort', ServiceName, ServiceOperation, ServiceInterfacePath)
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.
| SimulinkPort | Inport/outport name (string) |
| DataAccessMode | Data 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:
Use 'Implicit...'where data is buffered by the run-time environment (RTE), or 'Explicit...' where data is not buffered and hence not deterministic. |
| autosarPort | AUTOSAR port name (string) |
| InterfaceName | Interface name (string) |
| DataElement | Data element name (string) |
| SimulinkErrorStatusPort | The port you choose to receive error status. |
| 'ErrorStatus' | The data access mode for ports chosen to be error status receivers. |
| CorrespondingSimulinkReceiverPort | The port that is listened to for error status. The data access mode for this port must be either 'ImplicitReceive' or 'ExplicitReceive'. |
| SimulinkBasicSoftwarePort | The 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. |
| ServiceName | The service name you specify. Must be a valid AUTOSAR identifier. |
| ServiceOperation | The service operation you specify. Must be a valid AUTOSAR identifier. |
| ServiceInterfacePath | The service interface you specify. Must be a valid path of the form AUTOSAR/Service/servicename. |
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
![]() | addInputData (cgv.CGV) | addParam (rtw.codegenObjectives.Objective) | ![]() |

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 |