Skip to main content

diagGetConfiguredVariant

Valid for: CANoe DE

Function Syntax

long diagGetConfiguredVariant(char configuredVariantOut[], DWORD bufferLen); // form 1
long diagGetConfiguredVariant(char ecuQualifier[], char configuredVariantOut[], DWORD bufferLen); // form 2

Description

Retrieves the qualifier of the variant that is configured for the current target. Retrieve the qualifier of the variant that is configured for the current or given target in the Diagnostics configuration dialog. It is possible to provide this qualifier to the automatic variant identification algorithm.

Parameters

  • ecuQualifier: ECU the identification algorithm should run for, not the currently selected one. If given, diagSetTarget does not have to be called.
  • configuredVariantOut: Buffer for the qualifier
  • bufferLen: Length of the buffer

Return Values

Length of qualifier written to buffer, may be truncated:
  • 0: No error, OK
  • < 0: Error code
  • -94: Especially No target was selected

Example

Example Automatic Variant Identification