01-15-2012 03:22 PM
I have an array of strings out of a for loop and I am using array to spreadsheet vi and then I am usign concatenating strings vi to make it display like this :"12345 6789 7890"
but my problem is I am get a vertical like this
1
2
3
4
5
6
7
8
9
7
8
9
0
How can I make it horizontal?
01-15-2012 03:24 PM
wire Ture to transpose? on write to spreadsheet
01-15-2012 04:22 PM
@agyna wrote:
I have an array of strings out of a for loop and I am using array to spreadsheet vi and then I am usign concatenating strings vi to make it display like this :"12345 6789 7890" How can I make it horizontal?
Please attach some code, because you don't give enough detail to troubleshoot. Where are the string array elements coming from? Why are they strings instead of numeric datatypes?
What do you use as delimiter for "array to spreadsheet"? Do the string array elements possibly already contain an invisibe linefeed at the end, for example? Switch the display to \-codes to see.
To eliminate these, you could use "trim whitespace" from the strings palette.
After "array to spreadsheet", you have a single string, so "concatenate strings" would make no difference. Please explain what you are doing.
If you simply want to concatenate a 1D array of strings, use "concatenate strings" directly on the array. No need for the other operation.
01-15-2012 10:23 PM
Try this: