Chapter 5 Automotive Diagnostic Command Set API for LabVIEW
Automotive Diagnostic Command Set User Manual 5-10 ni.com
Convert from Phys.vi
Purpose
Converts a physical data value into a binary representation 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. For
Convert from Phys.vi, this value is ignored and always assumed
to be 0.
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)
value is the physical value to be converted.