Skip to main content

Iso11783PDDSetParameter

Valid for: CANoe DE • CANoe4SW DE Note
This function with all possible parameter (except the case with paramName = “debug”) is not effective if called before calling Iso11783PDDLoadDeviceDescription.

Function Syntax

long Iso11783PDDSetParameter( dword ecuHandle, char paramName[], float paramValue );

Description

Changes an internal parameter of the PDD API.

Parameters

  • ecuHandle
    Handle of the ECU. The handle must be created with Iso11783CreateECU beforehand or ZERO for general parameters.
  • paramName
    • “debug”: activates debug outputs in the Write Window
      • 1: on
      • 0: off
    • “autoUpdateVariable”: process variable is updated if value command is received
    • “version”: supported version of the ISO11783 specification: 1,2 (default), 3, and 4
  • paramValue
    New value for the parameter

Return Values

  • 0
    Process data dictionary has been created successfully
  • < 0
    Error code

Example

if (Iso11783PDDSetParameter( ecuHandle, "debug", 1 ) == 0) {
  write( "Debug mode activated" );
}