ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

transpose 1d array

It sounds kind of dumb, btu when Iave the 1d array or 1d string, it saves it as a row instead of column.  I know how to do that for a 2d array since they have that transpose 2d.  But how do you do for a 2d string or 1d string? thank you very much.
0 Kudos
Message 1 of 8
(8,084 Views)
If you use "write to spreadsheet file", wire a TRUE diagram constant to the "transpose?" input.
 
If you do your own formatting, use a newline ("\n" in '\'-code display) as delimiter.
 
 

Message Edited by altenbach on 11-04-2005 02:36 PM

Message 2 of 8
(8,075 Views)
I use "write file"
Here i attached the VI, it is really messy, but you can see on the last case my labview code.

Message Edited by Akatsuki on 11-04-2005 04:39 PM

0 Kudos
Message 3 of 8
(8,074 Views)
As I added in my answer above, you just need to use a different delimiter to sepearate your elements (newline in this case).
0 Kudos
Message 4 of 8
(8,070 Views)
is there a tutorial on how to use these codes that you are talking about? I tried to put \n but it does not go to the line.
0 Kudos
Message 5 of 8
(8,065 Views)
You need to set the string indicator or diagram constant to show '\'-codes. Right-click to modify.
0 Kudos
Message 6 of 8
(8,058 Views)
Is it possible to get an example of it? Thank you.
0 Kudos
Message 7 of 8
(8,053 Views)
Well, until you posted your VI, I did not know how you were formatting your strings. THere are many possibilities. 🙂
 
I cannot make sense out of your VI, but maybe all you need is to append a linefeed to each string array element. This can be achieved by placing a FOR loop as shown in the attached modification of your VI.
 
See if it works.
0 Kudos
Message 8 of 8
(8,047 Views)