2.1.7 Sink Data Conversion
Since DGI only can handle 8-bit values natively, all values received by DGI are remapped according to the
rules in the following table.
Data Type | Conversion |
---|---|
Int8 | Cast to uint8. 2ʼs complement value is retained. |
Uint8 | |
Int16 | 2ʼs complement value is retained. Split into two uint8 values. Big endian. |
Uint16 | Split into two uint8 values. Big endian. |
Int32 | 2ʼs complement value is retained. Split into four uint8 values. Big endian. |
Uint32 | Split into four uint8 values. Big endian. |
Float | Cast to Int32 |
Double | Cast to Int32 |
XY8 | X-value sent first, then Y-value |
XYu8 | X-value sent first, then Y-value |
XY16 | X-value sent first, then Y-value |
XYu16 | X-value sent first, then Y-value |
XY32 | X-value sent first, then Y-value |
XYu32 | X-value sent first, then Y-value |
XYFloat | X-value sent first, then Y-value |
XYDouble | X-value sent first, then Y-value |
String | The ASCII values of each character is sent. A null termination is added. |
StringFloat | Sent as a Int32 with the string following |
Boolean | False is sent as 0, true as 1 |