Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » Virtual Terminal Interaction Layer (VT IL) » VTIL_DelayTxTpCts

VTIL_DelayTxTpCts

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

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

Description

Delays transmitting of a (E)TP.CTS message generated and sent by the interaction layer. The message to be delayed is identified by its occurrences on the bus, starting at 1. The given CTS message is delayed every time until the CAPL function VTIL_ResetDelayedTxTpCts is called. The delay time is added to the value set by VTIL_SetNodeProperty(“CTSLatency”, …).

Parameters

  • ctsToDelay: The CTS message that shall be blocked [1…n].
  • timeout: Delay in milliseconds [1…3600000].
  • node: Simulation node to apply the function.

Return Values

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

Example

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