MC Double To Text.vi
- Updated2023-02-21
- 4 minute(s) read
MC Double To Text.vi
Purpose
Converts a numerical value to a text string using an enumeration or range text type scaling.
Format
Input
![]() |
object name indicates the object (measurement or characteristic) for which the COMPU_VTAB scaling is performed. If no COMPU_VTAB scaling is available for the object, TextValue is just a string representation of the value specified in value. | ||||||
![]() |
ECU ref in is the task reference that links to the selected ECU. This reference is originally returned from MC ECU Open.vi or MC ECU Select.vi, and then wired through subsequent VIs. | ||||||
![]() |
object type is a U32 ring that indicates the type of the object named in object name. Valid values are:
|
||||||
![]() |
value is the numerical value to be converted. For example, this could have been returned from MC Characteristic Read.vi or MC Measurement Read.vi. | ||||||
![]() |
Error in is a cluster which describes error conditions occurring before the VI executes. If an error has already occurred, the VI returns the value of the error in cluster to error out.
|
Output
![]() |
ECU ref out is the same as ECU ref in. Wire the task reference to subsequent VIs for this task. | ||||||
![]() |
TextValue is the resulting converted text string. If the value specified is listed in a COMPU_VTAB scaling for the characteristic or measurement specified in object name, the respective text is returned. If no such value is available, a string representation of the double value is returned. | ||||||
![]() |
Error out describes error conditions. If the Error in cluster indicated an error, the Error out cluster contains the same information. Otherwise, Error out describes the error status of this VI.
|
Description
MC Double To Text.vi performs text conversion for measurement or characteristic values.
Especially if the measurement or characteristic has an associated enumeration or range text type scaling, the textual representation of the value is returned. If no such value is present, either because the object does not have a text scaling or the value does not have a textual representation in the table, a string representation of the double value is returned.