Skip to main content
Open topic with navigation CAPL Functions » VT System » vtsSetOutputRange

vtsSetOutputRange

Valid for: CANoe DE • CANoe:lite DE

Function Syntax

long vtsSetOutputRange (char Target[], eVTSOutputRange Range);

Description

Sets the range that is used for analog output on output channels of VT2816 modules.

Parameters

  • Target: Name of the system variable/namespace that will be affected by this function call.
  • Range: Values see eVTSOutputRange

Return Values

  • 0: Successful call
  • -1: Call error
  • -2: The namespace on which the command was called does not exist, is not a valid VT System namespace or does not support this command.
  • -3: The specified mode is not valid
  • -4: The function wasn’t called in the context of the main method of a test module. So it is not possible to wait until the setting will be taken over from the VT System. Otherwise the call was successful but it is not sure if the settings have been taken over already when the call returns.

Example

vtsSetOutputRange ("VTS::TempSensor", eVTSOutputRangePlusMinus10V);
SetOutputRange