LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does exist any way to configure the “build array” to append rows, not columns?

In my program each iteration “niScope Fetch” vi returns 2D array [n:2] - two rows. I need to append it to the results of the previous iteration to get [2*n:2] arrays – two rows again.

The “build array” function (Concatenate Inputs) appends columns so that I get [n:4] array. Of course, I can use the “Transpose array” two times but it takes additional time inside an iteration bringing errors so I want to avoid it.

Unfortunately, the “graph” vi needs rows that makes me using “Transpose array” two times.

Does exist any way to configure the “build array” to append rows, not columns?

 

Below I attached my experiments with the “build array” function. Initially I have 1D array [n:1] – one row. By using the “build array” (Concatenate Inputs) I got [2*n:1] – one row. Disabling “Concatenate Inputs” gives [n:2] array - two rows. Applying the “build array” to the last [n:2] array I get [n:4] array or 3D array.

I see now two possibilities to get [2*n:2] array from [n:2] – by using two times the “Transpose array” or by composing and decomposing the initial [n:2] array into individual rows. Both methods require additional computing time.

0 Kudos
Message 1 of 3
(2,267 Views)

I dont know, if this is relavent or not...!!
But have you tried using "Transpose" option available on Graph (data type should be 2D Array).

 

Transpose Setting in Graph.png


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 2 of 3
(2,247 Views)

Yes, it is relevant. Minus one "transpose array" to display data. I hope the "graph" vi just uses the array data in a different way and does not actually transpose array inside. One "transpose array" is left for "build array".

It would be nice if such an option existed also for the "build array" function.

Thank you!

0 Kudos
Message 3 of 3
(2,228 Views)