Main Content

DiagnosticInfoCaller

Call AUTOSAR Diagnostic Event Manager (Dem) service interface DiagnosticInfo

  • DiagnosticInfoCaller block

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

Description

The AUTOSAR standard defines a Diagnostic Event Manager (Dem) service as a part of Basic Software (BSW) that runs in the AUTOSAR Runtime Environment (RTE). AUTOSAR software components access Dem services through client-server calls. The DiagnosticInfoCaller block calls the Dem service interface DiagnosticInfo to initiate a specified operation.

Parameters

expand all

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

Programmatic Use

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

Select the operation that the AUTOSAR software component calls from the Dem service interface DiagnosticInfo. The AUTOSAR standard defines the operations. After you select the operation, the inports and outports for the block are generated to support the 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.

Programmatic Use

Block Parameter: Operation
Type: character vector
Values: 'GetEventStatus' | 'GetMonitorStatus' | 'GetEventFailed' | 'GetEventTested' | 'GetDTCOfEvent' | 'GetFaultDetectionCounter' | 'GetEventExtendedDataRecord' | 'GetEventFreezeFrameData'
Default: 'GetEventStatus'

Specify an enumerated data type to represent a Dem format type required for some operations. For more information, see the AUTOSAR standard Specification of Diagnostic Event Manager.

Dependencies

Specify this parameter when Operation is set to GetDTCOfEvent.

Programmatic Use

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

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 R2016b

expand all