Skip to main content

diagSetParameter

Valid for: CANoe DE The behavior of this CAPL function depends on the used parameters. Possible scenarios:

Set the numeric parameter to the specified value

Function Syntax

  • long diagSetParameter (diagResponse obj, char parameterName[], double newValue)
  • long diagSetParameter (diagRequest obj, char parameterName[], double newValue)
  • long diagSetParameter (diagResponse obj, long mode, char parameterName[], double newValue)
  • long DiagSetParameter (diagRequest obj, long mode, char parameterName[], double newValue)

Method Syntax

  • diagResponse::SetParameter (char parameterName[], double newValue)
  • diagRequest::SetParameter (char parameterName[], double newValue)
  • diagResponse::SetParameter (long mode, char parameterName[], double newValue)
  • diagRequest::SetParameter (long mode, char parameterName[], double newValue)

Description

Sets the numeric parameter to the specified value. Note
  • Textual diagnostic parameters cannot be set with double values.
  • With 7.6 SP2 the function behavior was changed. The parameter will no longer be set to its default value.

Parameters

  • obj: Diagnostics object
  • parameterName: Parameter qualifier (NOT the language-dependent name of the parameter!)
  • newValue: Numeric value to which the parameter should be set.
  • mode: Access mode

Return Values

Example

Set a parameter to the symbolically-specified value.

Function Syntax

  • long diagSetParameter (diagResponse obj, char parameterName[], char newValue[])
  • long diagSetParameter (diagRequest obj, char parameterName[], char newValue[])

Method Syntax

  • diagResponse::SetParameter (char parameterName[], char newValue[])
  • diagRequest::SetParameter (char parameterName[], char newValue[])

Description

Sets a parameter to the symbolically-specified value. This is possible for all parameters, also numeric ones.

Parameters

  • obj: Diagnostics object
  • parameterName: Parameter qualifier
  • newValue: Symbolic value

Return Values

Example