09-09-2013 08:49 AM
Hello to all
I have a problem with the code that I enclose.
I have to concatenate the two array ("Array" and "Array2") so as to obtain an array formed by the array "Array" plus two columns formed by the array "Array2".
The result of my code is what you see in the Front Panel immage I have attached.
I think the problem is due to the type of array "Array2" but I can not understand what it is.
Can anyone help me?
Thanks
09-09-2013 08:58 AM
The result it correct, you add a single row with two columns to a 2D-array. What you probably want to do it to add those 2 columns to each row, right? If so, it's easier to do inside the loop.
/Y
09-09-2013 09:10 AM
It would do just that.
But really "Array2" already contains the elements that I would like to add (you can see by scrolling the first index).
09-09-2013 09:39 AM
the problem may be that the array "Array2" does not show the three elements contained in it in subsequent lines.
Could this be the problem? If so, why?
09-09-2013 09:39 AM
...Help me please!!!!!
09-09-2013 09:44 AM
My big concern is that you have 3D arrays. You probably just want 2D arrays. Can you post a sample of your data and an example of what you expect out?
09-09-2013 09:57 AM
So...
The array "Array" was built by simply reading a text file that contains the data show.
The array "Array2" was built by reading only the last line of the last file in three different folders ...
That is, Sart \ Datalog \ Sart01 \ last txt file ---------> last line
Sart \ Datalog \ Sart02 \ last txt file ---------> last line
Sart \ Datalog \ Sart03 \ last txt file ---------> last line
I would like these three lines (each containing 2 elements) were concatenated array "Array" in the next two columns.
If it is not clear just ask ... I will try to explain.
thanks
09-09-2013 09:59 AM
Heh, i didn't notice that! You're right Cross, the second array is 3D, possibly there's all expected row in there, in the 3rd dimension.
/Y
09-09-2013 10:01 AM
@gmazza wrote:
So...
The array "Array" was built by simply reading a text file that contains the data show.
The array "Array2" was built by reading only the last line of the last file in three different folders ...
That is, Sart \ Datalog \ Sart01 \ last txt file ---------> last line
Sart \ Datalog \ Sart02 \ last txt file ---------> last line
Sart \ Datalog \ Sart03 \ last txt file ---------> last lineI would like these three lines (each containing 2 elements) were concatenated array "Array" in the next two columns.
If it is not clear just ask ... I will try to explain.
thanks
Yes, but why do you interpret Array2 as a 3 dimensional array?
/Y
09-09-2013 10:06 AM
That's right Yameada. that's it! The other lines are in the third dimension. How do I display just one below the other?
( I do not know why the code pulls out a 3D array for "Array2" )