Skip to Main Content Skip to Search
Product Documentation

addEventConf - Class: RTW.AutosarInterface
Package: RTW

Add configured AUTOSAR event to model

Syntax

autosarInterfaceObj.addEventConf('TimingEvent', EventName, ExecutionPeriod);
autosarInterfaceObj.addEventConf('DataReceivedEvent', EventName, SimulinkInportName);

Description

autosarInterfaceObj.addEventConf('TimingEvent', EventName, ExecutionPeriod); adds a named TimingEvent with a specific execution period.

autosarInterfaceObj.addEventConf('DataReceivedEvent', EventName, SimulinkInportName); adds a named DataReceivedEvent that triggers a runnable whenever there is a change in value at the specified Simulink inport.

Each call adds a AUTOSAR RTEEvent to autosarInterfaceObj, a model-specific RTW.AutosarInterface object.

Input Arguments

TimingEvent

Periodic event that triggers execution of runnable by AUTOSAR Runtime Environment

EventName

Name of AUTOSAR event, which is used in XML description file

ExecutionPeriod

Execution period for AUTOSAR runnable, for example, 0.001.

DataReceivedEvent

Event that triggers execution of runnable by AUTOSAR Runtime Environment only when the value of a received data element is updated.

SimulinkInportName

Simulink inport that receives trigger data

See Also

RTW.AutosarInterface.removeEventConf

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