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

VTIL_SetSignal

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • long VTIL_SetSignal( dbSignal signal, double value ); // form 1
  • long VTIL_SetSignal( dbNode vt, dbSignal signal, double value ); // form 2

Description

Sets the signal to the specified physical value. The message of the signal is sent according to the configured send type.

Parameters

  • signal: Signal name from database. The signal must be assigned to the node as Tx signal.
  • value: physical value
  • 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
void SendLanguageCommand_English()
{
  VTIL_SetSignal( LC_VT::LanguageCodeCmd, 0x6E65 );
}