vtsSetLoadMode
Valid for: CANoe DE • CANoe:lite DEFunction Syntax
Description
Switches the internal load to a specific mode.Parameters
- Target: Name of the system variable/namespace that will be affected by this function call.
- Mode: Values see eVTSLoadMode
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
The following example demonstrates the usage of the internal load of a VT1004 channel. In this example the channel is called LowBeamLeft. The internal load is configured for resistance-control-mode with a resistance of 120 Ohm. So the electronic load functions as a constant resistor against the input. The second part of the example shows how to use the current control mode. Here the electronic load is regulated so that a constant current flows between the two ECU lines.CAPL
.NET (C#)
VT System Control
Select LowBeamLeft-
Configure resistance mode
- Set Sidebar | Internal Load | Set Resistance to 120.0
- Set Sidebar | Internal Load | Load Mode to Resistance
- Set Schematic | RelayIntLoadA, RelayIntLoadB to closed
-
Configure current mode
- Set Sidebar | Internal Load | Set Current to 1.0
- Set Sidebar | Internal Load | Load Mode to Current
- Set Schematic | RelayIntLoadA, RelayIntLoadB to closed