Purpose

Converts a binary representation of a value into its physical value using a type descriptor. Format

Input

type descriptor is a cluster that specifies the conversion of the physical value to its binary representation:
Start Byte gives the start byte of the binary representation.
Byte Length is the binary representation byte length.
Byte Order is the byte ordering of the data in the binary representation:
0: MSB_FIRST (Motorola)
1: LSB_FIRST (Intel)
Data Type is the binary representation format:
0: Unsigned. Only byte lengths of 1–4 are allowed.
1: Signed. Only byte lengths of 1–4 are allowed.
2: Float. Only byte lengths of 4 or 8 are allowed.
Scale Factor defines the physical value scaling:
Phys = (Scale Factor) * (binary representation) + (Scale Offset)
Scale Offset (refer to Scale Factor)
data in is the data record from which physical values are to be extracted.

Output

value is the physical value extracted from the record.

Description

Data output from diagnostic services (for example, ReadDataByLocalIdentifier.vi) is usually a byte stream of binary data. If you have a description of the data output (for example, byte 3 and 4 are engine RPM scaled as .25 * x RPM in Motorola representation), you can use Convert to Phys.vi to extract the physical value from the byte stream by filling an appropriate type descriptor cluster.