04-24-2014 09:12 AM
Problem... I want to create a single String element. My input is a 1D Integer array of two elements e.g. [10, 5] and the output needs to be a String element in the form of "10,5". Just a single element and not an array. Any tips or ideas?
Thanks!
Solved! Go to Solution.
04-24-2014 09:16 AM - edited 04-24-2014 09:17 AM
Array to Spreadsheet String.
You may need to delete the end of line character that would show up.
Alternatively, if you know it is always 2 elements. Index Array, and feed the two outputs to Format Into String with %s,%s format code.
04-24-2014 09:17 AM
Use Array to Spreadsheet String from the String palette with the delimiter set to comma.
Lynn
04-24-2014 09:17 AM - edited 04-24-2014 09:19 AM
Index Array.vi to get the elements, then Format into String.vi to create the string.
EDIT: Forgot about Array to Spreadsheet.vi. That combines both functions.