Dem Status Override
R2026bLibraries:
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
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"autosarlibdem/Dem Status Override"
Example: add_block("autosarlibdem/Dem Status Override","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2022a

