Skip to main content

diagInitialize

Valid for: CANoe DE

Function Syntax

Method Syntax

Description

Reinitializes the object for the given service or primitive. Diagnostics request will be initialized with the default request parameters of the service, while diagnostic responses will be initialized with the default parameters of the first or specified primitive of the service. If the service is not defined, or the primitive is not defined at the given service, nothing happens and an error code is returned. Note:

Parameters

  • object: Diagnostics object to re-initialize
  • serviceQualifier: Qualifier of the service that should be used for reinterpretation
  • primitiveQualifier: Qualifier of the service primitive that should be used for reinterpretation

Return Values

Example

In an ECU simulation, initialize a response object with a specific primitive before sending it.