Main Content

Dem Status Override

Override an event to simulate and verify behavior

Since R2022a

  • Dem Status Override block

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

Description

The Dem Status Override block can be configured to set the diagnostic status for an AUTOSAR event simulated in the Diagnostic Service Component block. This status value can be configured according to the Unified Diagnostic Services (UDS) standard. Specifically, you can use this block to set the return value of GetEventStatus calls for a specific event regardless of the behavior of the other events in the model. Other blocks that attempt to modify the event status during simulation are ignored. This block allows a predictable entry-point for testing specific behavior that you can use as a low-cost method to quickly gain coverage of a component model.

Examples

Parameters

expand all

Specify the AUTOSAR event that you want to override by using this block.

Programmatic Use

Block Parameter: EventId
Type: integer
Values: 0 | integer
Default: 0

Test failed the last time it was checked.

To set this property, select Dialog to manually configure the status or Input port to have the status configured dynamically in response to the behavior of a connected input.

Test failed during the current operation cycle.

To set this property, select Dialog to manually configure the status or Input port to have the status configured dynamically in response to the behavior of a connected input.

Test failed during the current or previous operation cycle.

To set this property, select Dialog to manually configure the status or Input port to have the status configured dynamically in response to the behavior of a connected input.

Test failure confirmed at the time of the request.

To set this property, select Dialog to manually configure the status or Input port to have the status configured dynamically in response to the behavior of a connected input.

Test not performed since the last code clear.

To set this property, select Dialog to manually configure the status or Input port to have the status configured dynamically in response to the behavior of a connected input.

Test failed at least once since last code clear.

To set this property, select Dialog to manually configure the status or Input port to have the status configured dynamically in response to the behavior of a connected input.

Test not completed during this operation cycle.

To set this property, select Dialog to manually configure the status or Input port to have the status configured dynamically in response to the behavior of a connected input.

Test failure so severe that it alerts the server.

To set this property, select Dialog to manually configure the status or Input port to have the status configured dynamically in response to the behavior of a connected input.

Extended Capabilities

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

Version History

Introduced in R2022a