Skip to main content
Open topic with navigation

VTIL_SetVTStatus

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

Tool Availability

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • long VTIL_SetVTStatus(dword cycleTime); // form 1
  • long VTIL_SetVTStatus(dword cycleTime, pg VT12 pgWithNewContent); // form 2
  • long VTIL_SetVTStatus(dbNode vt, dword cycleTime); // form 3
  • long VTIL_SetVTStatus(dbNode vt, dword cycleTime, pg VT12 pgWithNewContent); // form 4

Description

  • Forms (1) and (3): This function changes the cycle time of the VT Status message. The content of VT Status message stays unchanged.
  • Forms (2) and (4): This function changes the content and cycle time of the VT Status message.

Parameters

  • vt: VT simulation node to apply the function
  • cycleTime: Cycle time of the VT Status message [ms] (default: 1000)
  • pgWithNewContent: Content of this message is used by the following VT Status messages sent by the VT IL

Return Values

  • 0: Blocking of all messages has been stopped successfully
  • < 0: An error has occurred, see IL Error Code.

Example

Example form 3, 4