SetMinCurrentMeasurementRange
Valid for: CANoe DE • CANoe:lite DE NoteThe function can only be called on system variable namespaces of appropriate channels of VT System modules.
Method Syntax
long SysVarNamespace.SetMinCurrentMeasurementRange (dword range); // VT7001long SysVarNamespace.SetMinCurrentMeasurementRange (eVTS2808CurrentMeasurementRange range); // VT2808
Description
Sets the current measurement range that should be used by the automatic measuring range changeover of the VT7001/VT2808 module. Amperage ranges below the ranges set in range parameter will no longer be used. This prevents a measuring range changeover in dedicated situations. Even if the measuring range for a specified amperage is not used, this does not mean that no measurement is possible. Since the optimal Shunt is not used in such situations, the accuracy of the measurement decreases below the given value in the manual. The accuracy decreases all the more the more the used measuring range differs from the optimum. Therefore the range should be set advisedly.Parameters
- Target: Name of the system variable/namespace that will be affected by this function call.
- Range: Determines up to which range the automatic measuring range changeover may change over.
- Ranges for VT7001 module: Values see eVTSCurrentMeasurementRange
- Ranges for VT2808 module: Values see eVTS2808CurrentMeasurementRange
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.
- -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
Example for VT7001This example shows how the measuring ranges up to 100mA are locked for a measurement before a load will be switched on:
CAPL
.NET (C#)
—VT System Control
- Select ECUSupplyModule
- Set Sidebar | Interconnection Settings | Mode to sup1
- Select ECUSupply
- Set Sidebar | General | Min Meas. Range to 1A
- Set Schematic | Active to active