Skip to main content

diagGetParameterLongName, diagGetRespParameterLongName

Valid for: CANoe DE

Function Syntax

Method Syntax

Description

Copies the long name of a diagnostic parameter into the buffer, honoring the character encoding configured in the diagnostic description. The text is converted into the encoding used in the CAPL program. There are two ways to identify the parameter:
  • with index: like DiagGetParameterName, the index will also count structural parameter that cannot have a symbolic value, but of course have a name.
  • with parameter path: the path of the parameter, either inserted using the symbol explorer, or returned by the function DiagGetParameterPath. That function only counts leaf parameters since those can have a symbolic representation.

Parameters

  • obj: Diagnostic object.
  • paramNo: Which parameter in the object, beginning with 0.
  • paramPath: Parameter in the object, identified by its qualifier (path).
  • buffer: Output buffer. Character encoding of the CAPL file will be honored.
  • bufferSize: Buffer size.

Return Values

  • Length of path written to buffer, may be truncated.
  • Error code

Example