DiagnosticInfoCaller
Call AUTOSAR Diagnostic Event Manager (Dem) service interface
DiagnosticInfo
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
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.
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' |
More About
For some Dem operations such as GetDTCOfEvent and
GetEventStatus, the block parameters
dialog box displays a data type parameter. The parameter specifies
an enumerated data type for a function input that represents a Dem
format type or event status. Default data types
Dem_DTCFormatType or
Dem_EventStatusType defined by the
AUTOSAR standard are provided by the software.
When you generate code for a model configured to use one of these
enumerated data types then their standardized definitions are
included in generated header file Rte_Type.h.
For enumerated data type Dem_DTCFormatType the
generated code includes this
definition:
typedef uint8 Dem_DTCFormatType; #ifndef DEM_DTC_FORMAT_OBD #define DEM_DTC_FORMAT_OBD (0) #endif #ifndef DEM_DTC_FORMAT_UDS #define DEM_DTC_FORMAT_UDS (1) #endif #ifndef DEM_DTC_FORMAT_J1939 #define DEM_DTC_FORMAT_J1939 (2) #endif
Dem_EventStatusType the generated code
includes this definition:typedef uint8 Dem_EventStatusType; #ifndef DEM_EVENT_STATUS_PASSED #define DEM_EVENT_STATUS_PASSED (0) #endif #ifndef DEM_EVENT_STATUS_FAILED #define DEM_EVENT_STATUS_FAILED (1) #endif #ifndef DEM_EVENT_STATUS_PREPASSED #define DEM_EVENT_STATUS_PREPASSED (2) #endif #ifndef DEM_EVENT_STATUS_PREFAILED #define DEM_EVENT_STATUS_PREFAILED (3) #endif #ifndef DEM_EVENT_STATUS_FDC_THRESHOLD_REACHED #define DEM_EVENT_STATUS_FDC_THRESHOLD_REACHED (4) #endif
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Version History
Introduced in R2016bStarting R2025a, you can use any operation that is associated with the block, regardless of the configured schema version of the model and other blocks in the model.
Starting in R2024a, use Diagnostic Event Manager (Dem) operation
GetMonitorStatus. To use this operation
your model must be mapped to an AUTOSAR component.
Starting in R2023a, Basic Software caller (BSW) blocks support all AUTOSAR schema versions supported by AUTOSAR Blockset. The BSW blocks inherit the same schema version specified by the model. Code and ARXML generated from the component reflect the schema version specified on the model. When you change the schema version specified by the model, the software automatically replaces software calls to the correct operation.
In some cases, the software may prompt you to confirm a change when moving between schema versions. The software may also display a warning as you update to new schema versions as some modeling patterns are no longer compliant with the configured AUTOSAR schema version.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
