Skip to main content

J1939ILGetLastErrorText

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • long J1939ILGetLastErrorText(dword bufferSize, char buffer[] ); // form 1
  • long J1939ILGetLastErrorText(dbNode node, dword bufferSize, char buffer[] ); // form 2

Description

Returns the result of the last called J1939 IL function as string.

Parameters

  • bufferSize: size of the return buffer
  • buffer: return buffer
  • node: Simulation node to apply the function

Return Values

Example

on key 't' 
{
  char error[64];
  BYTE date = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 };
  J1939ILSetSignalRaw( EEC1::EngSpeed, 6, data );

  J1939ILGetLastErrorText( error );
  write( "Errorcode:  %s", error );
}