Converting a Numeric Data Type in LabVIEW to a Byte Array

Updated Apr 18, 2018

Reported In

Software

  • 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?

Solution

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. 
 


 

WAS THIS ARTICLE HELPFUL?

Not Helpful