Skip to main content
Open topic with navigation

J1939ILResetBlockedTxTpCts

CAPL Functions » J1939 » J1939 IL » J1939ILResetBlockedTxTpCts

Tool Availability

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • long J1939ILResetBlockedTxTpCts(); //Form 1
  • long J1939ILResetBlockedTxTpCts(dbNode node); //Form 2

Description

Resets all CTS messages that were blocked with J1939ILBlockTxTpCts.

Parameters

  • node: Simulation node to apply the function.

Return Values

  • 0: OK
  • -1: General Error

Example

on start {
  long res;
  res = J1939ILBlockTxTpCts(1); // Block the first CTS message
  if(res != 0) {
    write("An error occurred: %d", res);
  }
}
// Reset blocked TP.CTS messages by pressing ‘a’ on the keyboard.
on key 'a'{
  long res;
  res = J1939ILResetBlockedTxTpCts(); // Resets all blocked TP.CTS messages.
  if(res != 0) {
    write("An error occurred: %d", res);
  }
}