VTIL_GetDisplayedValue
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long VTIL_GetDisplayedValue(dbNode workingSetMaster, dword objectId, double & value); // form 1long VTIL_GetDisplayedValue(dword addressWorkingSetMaster, dword objectId, double & value); // form 2long VTIL_GetDisplayedValue(dbNode vt, dbNode workingSetMaster, dword objectId, double & value); // form 3long VTIL_GetDisplayedValue(dbNode vt, dword addressWorkingSetMaster, dword objectId, double & value); // form 4long VTIL_GetDisplayedValue(dbNode workingSetMaster, dword objectId, char* buffer, dword bufferLength); // form 5: deprecated with 13long VTIL_GetDisplayedValue(dbNode vt, dbNode workingSetMaster, dword objectId, char* buffer, dword bufferLength); // form 6: deprecated with 13long VTIL_GetDisplayedValue(dbNode workingSetMaster, dword objectId, char* buffer); // form 7long VTIL_GetDisplayedValue(dword addressWorkingSetMaster, dword objectId, char* buffer); // form 8long VTIL_GetDisplayedValue(dbNode vt, dbNode workingSetMaster, dword objectId, char* buffer); // form 9long VTIL_GetDisplayedValue(dbNode vt, dword addressWorkingSetMaster, dword objectId, char* buffer); // form 10
Description
Returns the displayed value of an object. If the object supports scaling/offset then the displayed value isdisplayed value = (value + offset) * scaling factor
If the object uses a variable reference then the value of this reference is used to calculate the displayed value.
For Input String and Output String objects you can use form 7 and 9.
Parameters
- vt: VT simulation node to apply the function
- workingSetMaster: Working Set Master which provides the object pool.
- addressWorkingSetMaster: Address of the Working Set Master which provides the object pool.
- objectId: Object ID.
- value: Returns the value of the object.
- buffer: After execution, this parameter contains the displayed string of an Input String or Output String object.
- bufferLength: Length of the buffer parameter in bytes.
Return Values
- 0: Function has been executed successfully
- < 0: An error has occurred, see IL Error Code