Main Content

DiagnosticEventAvailableCaller

Call AUTOSAR Diagnostic Event Manager (Dem) service interface EventAvailable

Since R2020a

  • DiagnosticEventAvailableCaller block

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

Description

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.

The DiagnosticEventAvailableCaller block calls the Dem service interface EventAvailable to initiate the SetEventAvailable operation. A component uses SetEventAvailable to temporarily disable and enable a specific event, for example, an event of the same name associated with an existing Dem SetEventStatus caller block. Typically you connect a true/false Boolean constant block to the SetEventAvailable input, so that you can switch the event off (false) or on (true). When disabled, the event fired by the SetEventStatus block has no effect.

Parameters

expand all

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

Programmatic Use

Block Parameter: PortName
Type: character vector
Values: 'EventAvailable'
Default: 'EventAvailable'

This block supports the Dem operation SetEventAvailable and generates inports and outports for the operation. You can use this operation to configure events as unavailable. An unavailable event is treated as if it is not configured in the system and returns E_NOT_OK when accessed by other operations.

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.

Programmatic Use

Block Parameter: Operation
Type: character vector
Values: 'SetEventAvailable'
Default: 'SetEventAvailable'

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: -1 | scalar
Default: -1

Extended Capabilities

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

Version History

Introduced in R2020a

expand all