Converting a Numeric Data Type in LabVIEW to a Byte Array

Updated Aug 17, 2023

Reported In


  • LabVIEW

Issue Details

I get an error in LabVIEW that prevents me from running my program:

You have connected two terminals of different types. The type of the source in unsigned word [16-bit integer]... The type of the sink is unsigned byte [8-bit integer]...

How do I convert a numeric data type to a byte array?


You can wire your string into 'anything' terminal of the Flatten To String function, and then wire that into the String To Byte Array to convert your numeric value to a byte array.