From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,072 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,065 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,047 Views)