LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can't insert a 1D array into a 2D array using "insert into array"

Solved!
Go to solution

Hi all,

 

I have a very simple problem.

 

I am trying to insert a 1D array as a column into a 2D array using "insert into array" as shown in image1.

 

When I try to wire the 1D array into the "new element/subarray" terminal I get the error shown in image2.

 

according to the help files, I should be able to wire an n-1 dimension array into this the "new element/subarray" terminal. In other words

I should be able to wire a 1D array here.

 

Can anyone tell me what I'm doing wrong?

 

Thanks for your help,

Download All
0 Kudos
Message 1 of 3
(2,074 Views)
Solution
Accepted by topic author edCubed

Apparently I had converted the float array into a "spreadsheet string" and I needed to convert it back into an array before sending it to "insert into array".

 

check out image3 for details.

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

Hi ed³,

 

why do you use ArrayToSpreadsheetString and SpreadsheetStringToArray at all?

Why not use NumberToExponentialString? It takes arrays too...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(2,049 Views)