Main Content

Dem Status Inject

Inject an event failure to test recovery

Since R2022a

  • Dem Status Inject block

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

Description

The Dem Status Inject block can be configured to instantaneously 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 inject a transient failure into a system to test its ability to recover. This block simulates and responds to other blocks affecting its status to show system recovery.

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

Specify the type of diagnostic event that you want to inject into the system.

Programmatic Use

Block Parameter: FaultType
Type: character vector
Values: 'Event Fail' | 'Event Pass' | 'Operation Cycle Start' | 'Operation Cycle End' | 'Fault Record Overwritten' | 'Fault Maturation' | 'Clear Diagnostic' | 'Aging' | 'Healing' | 'Indicator Conditions Met'
Default: 'Event Fail'

Specify when to inject the diagnostic event into the system.

Programmatic Use

Block Parameter: InjectTriggerType
Type: character vector
Values: 'rising' | 'falling' | 'either' | 'function-call'
Default: 'rising'

Test failed the last time it was checked.

This read-only property is set by the Fault type.

Test failed during the current operation cycle.

This read-only property is set by the Fault type.

Test failed during the current or previous operation cycle.

This read-only property is set by the Fault type.

Test failure confirmed at the time of the request.

This read-only property is set by the Fault type.

Test not performed since the last code clear.

This read-only property is set by the Fault type.

Test failed at least once since last code clear.

This read-only property is set by the Fault type.

Test not completed during this operation cycle.

This read-only property is set by the Fault type.

Test failure so severe that it alerts the server.

This read-only property is set by the Fault type.

Extended Capabilities

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

Version History

Introduced in R2022a