VTIL_EditNumericValue, VTIL_ChangeNumericValueMsg
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long VTIL_EditNumericValue(dword objectId, double value, dword duration); // form 1long VTIL_EditNumericValue(dword objectId, double value, dword duration, dword option); // form 2long VTIL_EditNumericValue(dbNode vt, dword objectId, double value, dword duration); // form 3long VTIL_EditNumericValue(dbNode vt, dword objectId, double value, dword duration, dword option); // form 4long VTIL_ChangeNumericValueMsg(dword objectId, dword rawValue); // form 5long VTIL_ChangeNumericValueMsg(dbNode vt, dword objectId, dword rawValue); // form 6
Description
Editing of an Input Number object. The VTIL_EditNumericValue methods simulate the selection, opening, value modification and closing of the Input Number or Input List object. The corresponding VT messages are sent. If the object is already selected or opened for input, then the steps Select, Open and Close (and corresponding VT messages) are skipped. The VTIL_ChangeNumericValueMsg methods send only the VT Change Numeric Value message (without influencing any button or input object and without triggering any event in the Virtual Terminal).Parameters
- vt: VT simulation node to apply the function
- objectId: Input object ID
- value: New numeric value which is displayed in the input field
- rawValue: This value is sent in the Change Numeric Value message
- duration [ms]: After this duration the edit process ends. If input object is already opened for input this parameter is ignored.
- option:
- 0: No additional option
- 1: Edit object even it is not part of the active Data/Alarm Mask
Return Values
- 0: Function has been executed successfully
- < 0: An error has occurred, see IL Error Code