Skip to main content
Open topic with navigation CAPL Functions » Ethernet » Function Overview » SetServiceSignal

SetServiceSignal

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

double SetServiceSignal(serviceSignalNumber qualifier, double value); // form 1
double SetServiceSignal(char qualifier [], double value); // form 2

Description

Sets the value of a Service Signal.

Parameters

  • qualifier: Qualifier of the Service Signal.
  • value: Value to be set for the Service Signal.

Return Values

  • 0: no error, function successful.
  • -1: Service signal not found. No service signal matches the qualifier.
  • -2: Wrong service signal type. This function may only be used for service signals of a numeric data type.
  • -4: No transmitter to send the Signal. This error may occur if no Interaction Layer is found that provides the Signal to be sent.
  • -255: General error occurred.

Example

SetServiceSignalDataSetServiceSignalStringGetServiceSignal