Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » Virtual Terminal Interaction Layer (VT IL) » VTIL_ActivateDiagnosticsSupport

VTIL_ActivateDiagnosticsSupport

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long VTIL_ActivateDiagnosticsSupport(byte enable); // form 1
long VTIL_ActivateDiagnosticsSupport(dbNode node, byte enable); // form 2

Description

This function activates or deactivates the support of ISO11783 diagnostics by the IL. If diagnostics support is activated the node:
  • sends message DM1 cyclically if any error is active
  • sends message DM2 if DM2 is requested
  • clears all previously active DTCs if DM3 is requested
If diagnostics support is activated then diagnostics message which are in the Tx list of the node are disabled and therefore not used by the IL.

Parameters

  • enable
    Enables or disables support of ISO11783 diagnostics:
    • 0: Disable support of ISO11783 diagnostics
    • 1: Enable support of ISO11783 diagnostics
  • node
    Simulation node to apply the function.

Return Values

  • 0
    Function has been executed successfully
  • < 0
    An error has occurred, see IL Error Code

Example