Skip to main content
Open topic with navigation

VTIL_DelayTxTpAbort

CAPL Functions » ISO11783 » Virtual Terminal Interaction Layer (VT IL) » VTIL_DelayTxTpAbort

Tool Availability

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • long VTIL_DelayTxTpAbort(long timeout); //Form 1
  • long VTIL_DelayTxTpAbort(dbNode node, long timeout); //Form 2

Description

Delays transmitting of the (E)TP.Abort message generated and sent by the interaction layer. The Abort message is delayed every time until the CAPL function VTIL_ResetDelayedTxTpAbort is called. The delay time is added to the value set by VTIL_SetNodeProperty(“AbortLatency”, …).

Parameters

  • timeout: Delay in milliseconds [1…3600000].
  • node: Simulation node to apply the function.

Return Values

  • 0: OK
  • -3001: General Error
  • -3004: Parameter timeout must be greater than 0

Example

on start {
  long res;
  res = VTIL_DelayTxTpAbort(200); // Delay TP.Abort by 200ms.
  if(res != 0)
  {
    write("An error occurred: %d", res);
  }
}