Skip to main content

ILFaultInjectionSetMsgDlc

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long ILFaultInjectionSetMsgDlc (dbMsg msg, dword dlc)

Description

Assigns a new DLC to the message. To set the DLC back to its original value, use ILFaultInjectionResetMsgDlc.

Parameters

  • msg: Message that should get a new DLC.
  • dlc: New DLC of the message.

Return Values

  • 0: No error.
  • -1: Momentary state of the IL does not permit this function.
  • -50: Nodelayer is inactive — possibly deactivated in the node’s configuration dialog.
  • -100: Signal or message was not found in the database or is not mapped to this node.

Example