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

VTIL_SetMsgEvent

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • long VTIL_SetMsgEvent( dbMsg msg ); // form 1
  • long VTIL_SetMsgEvent( dbNode vt, dbMsg msg ); // form 2

Description

The message is sent immediately, the send type is ignored. The VT IL must be in state active and the message must be assigned to the node as Tx message. To modify signal values prior to message transmission, the CAPL functions VTIL_SetSignal or VTIL_SetSignalRaw can be used.

Parameters

  • msg: Message name from database. The message must be a Tx message of the node.
  • vt: VT simulation node to apply the function.

Return Values

  • 0: Function has been executed successfully
  • < 0: An error has occurred, see IL Error Code

Example

Example form 1
on key 'i'
{
    VTIL_SetMsgEvent( ICC_VT );
}