10-29-2015 04:26 AM
Hi,
Currently i am working in labview. i want to traspose my row of 1D array into column. Can anyone tell me how to transpose 1D String array in labview. i Tried Transpose 2D array in labview 6i. It is not allowing me to connect string as the input array. It is expecting me to give Numeric Array.
thanks,
kalpana
10-29-2015 05:45 AM
10-29-2015 10:27 AM
If you need to combine it with some other arrays, you can transpose after you combine them. I believe if you use the "Build Array" with two 1D arrays, then you will get a 2D array with 2 rows and N columns (N is the length of the longer array). At that point you could transpose it to get 2 columns (often useful for writing to reports). If you right click on "Build Array" you can choose "concatenate inputs" which would result in a 1D array containing N+M elements, where N and M are the length of the two arrays you concatenate.
10-29-2015 10:33 AM
If you want to add the 1D array as the last row of a 2D array, it is easy, just use the build array function like I said. If you want to add the 1D array as the last column, it's a bit trickier. You will have to transpose the 2D array, build the array, then transpose the 2D array back again.
10-29-2015 12:35 PM