LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array

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

Download All
0 Kudos
Message 1 of 12
(3,488 Views)

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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 12
(3,471 Views)

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).

0 Kudos
Message 3 of 12
(3,464 Views)

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?

0 Kudos
Message 4 of 12
(3,436 Views)

...Help me please!!!!!

0 Kudos
Message 5 of 12
(3,435 Views)

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?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 12
(3,427 Views)

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

0 Kudos
Message 7 of 12
(3,417 Views)

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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 8 of 12
(3,414 Views)

@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 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


Yes, but why do you interpret Array2 as a 3 dimensional array?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 9 of 12
(3,412 Views)

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" )

0 Kudos
Message 10 of 12
(3,407 Views)