Main Content


Call AUTOSAR Diagnostic Event Manager (Dem) service interface OperationCycle

Since R2020a

  • DiagnosticOperationCycleCaller block

AUTOSAR Blockset / Classic Platform / Basic Software / Diagnostic Event Manager (Dem)


For the AUTOSAR Classic Platform, the AUTOSAR standard defines important services as part of Basic Software (BSW) that runs in the AUTOSAR Runtime Environment (RTE). Examples include services provided by the Diagnostic Event Manager (Dem), the Function Inhibition Manager (FiM), and the NVRAM Manager (NvM). In the AUTOSAR RTE, AUTOSAR software components typically access BSW services by using client-server communication.

To support system-level modeling and simulation of AUTOSAR components and services, AUTOSAR Blockset provides an AUTOSAR Basic Software block library. The library contains preconfigured blocks for modeling component calls to AUTOSAR BSW services and reference implementations of the BSW services.

As defined in the AUTOSAR specification, the Function Inhibition Manager provides a control mechanism for selectively inhibiting (deactivating) function execution in software component runnables based on function identifiers (FIDs) with inhibit conditions.

The Function Inhibition Manager is closely related to the Diagnostic Event Manager because inhibiting conditions can be based on the status of diagnostic events. An operation cycle affects events that share the same Diagnostic Service Component. The DiagnosticOperationCycleCaller block calls the Dem service interface OperationCycle to control operation cycles.


expand all

Enter the name of the client port the AUTOSAR software component uses to call the Dem service interface OperationCycle.

Programmatic Use

Block Parameter: PortName
Type: character vector
Values:'OperationCycle' | unique name
Default: 'OperationCycle'

Select a Dem operation to control or monitor operation cycles. To start and stop operation cycles, select SetOperationCycleState. To query the current state of an operation cycle, select GetOperationCycleState. After you select an operation, the inports and outports for the block are generated to support that operation.

The Operation parameter must be set to an operation supported by the schema currently specified by the model. The list of operations on the block parameters dialog reflects the operations supported by the current schema.


The operation RestartOperationCycle is only available if there are no input ports on the block. If there are input ports on the block then only GetOperationCycle and SetOperationCycle are available.

Programmatic Use

Block Parameter: Operation
Type: character vector
Values: 'RestartOperationCycle' | 'SetOperationCycleState' | 'GetOperationCycleState'
Default: 'RestartOperationCycle'

Specify an enumerated data type to represent a Dem format type required for some operations.


Specify this parameter when Operation is set to SetOperationCycleState.

Programmatic Use

Block Parameter: Datatype
Type: character vector
Values: 'Enum:Dem_OperationCycleStateType' | enumerated data type
Default: 'Enum:Dem_OperationCycleStateType'

Block sample time. The default sets the block to inherit its sample time from the model.

Programmatic Use

Block Parameter: st
Type: character vector
Values: real scalar
Default: '-1'

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2020a

expand all