LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert 1D array of string to string

How to convert 1D array of string to string.
0 Kudos
Message 1 of 6
(13,631 Views)
Please explain what you need in more detail. Do you want to concatenate all the elements of the string array into one single string or is is something else you want to do?

If you are trying to write array of strings to a data file (for example excel) then take a look at Array to Spreadsheet string in String functions.

deepak
0 Kudos
Message 2 of 6
(13,625 Views)
Try to connect "Concatenate Strings" (from functions->strings pallete) with one input connected to your array and the output is a single string containg all you array strings.

hope it helps
Pawel
Message 3 of 6
(13,616 Views)
Just pass your array to a for loop, use shift registers and concatenate command and you get the string. Look at the attachment.

Kudos are the best way to say thanks 🙂
0 Kudos
Message 4 of 6
(13,598 Views)
Maximus00, as Pavel indicated, there is a lesser known feature of "Concatenate Strings" that does exactly what your code is doing if the input is an array of strings. In one step! 🙂 See attached image.
Message 5 of 6
(13,591 Views)
You're right , it is little known, wish I'd known that 3 years ago ! could save so much diagram space.

Cheers
guys
0 Kudos
Message 6 of 6
(13,559 Views)