Byte Splitting and Joining of Floating Point Data in LabVIEW

Updated Feb 27, 2024

Environment

Software

  • LabVIEW

This article explains the method to divide 64-bit floating-point data into 8 pieces of 8-bit data,
then combine 8 pieces of 8-bit data to obtain the original 64-bit floating-point data.
This is generally used when sending or receiving data via TCP/IP communication in LabVIEW.

You can use Flatten To String Function to divide 64-bit floating-point data into 8 pieces of 8-bit data,
while you can use Unflatten From String Function to combine 8 pieces of 8-bit data as shown below.

sample code.png
Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project.
To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW block.