01-28-2011 11:12 PM
Hi All,
I have two different arrays of values suppose 1 array A(1,2,3,4,5) and another array B(3,4,5,6,7). I want to write these to arrays into a multicolumn listbox such that 1st column would be array A and 2nd column would be array B.
Thnx in advance
Solved! Go to Solution.
01-28-2011 11:16 PM
You can use Build Array to build your two 1-D arrays into a 2-D array. Use number to string functions as necessary to convert to a 2-D array of strings. Send that to the listbox.
01-28-2011 11:51 PM
Hi thnx for your reply.
But my arrays A and B are already 2D arrays.(sorry for not saying this before).
To describe my objective in brief, I have some controls where in I enter some values. And I have a formula which calculates the result and starts pushing those values in the array(that is array A and B), which is a 2D array. Now I have to display these two arrays in a multicolumn listbox.
01-29-2011 12:07 AM
@saki wrote:
Hi thanks for your reply.
But my arrays A and B are already 2D arrays.(sorry for not saying this before).
That is not what you said before, where you actually showed two 1-D arrays.
You can use Build Array with the concatenate setting turned on (right click) to concatenate the two 2-D arrays into a bigger 2-D array. You may have to use transpose depending on whether you are merging the two in the row direction or column direction.
If you need further help, please post your VI that has sample data saved along with how you want the multicolumn list box to look.
01-29-2011 01:14 AM
I still couldnt understand how to do it...
I am posting here my VI. here the 1, 2, 3, 4 are some controls. If i enter any value, the calculated Voltage and current are continously pushed in the array. Now i have display these arrays in the multi column listbox as 1st column be the voltage and second column being the current.
01-29-2011 08:52 AM
saki,
Hope this helps to go further