| Contents | Index |
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. |

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 |