ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create 2D String array from a differen 2D string array

Pardon my inexperience with this question...I'm a bit of a newb....

 

I am importing a .CSV file into a 20x26 string array. Of that array, I need to make a complete duplicate of three of the columns and create a 20x3 string array to be exported to a new .CSV file. I'm having trouble figuring out how to do this. I've tried using a loop and Index Array to pull elements out of the array and then either Replace Array Subset or Insert Into Array, but I get an error saying that the array types mismatch.

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

No need for a loop. You can use Array Subset to extract an entire rectangle out of the array.

 

If you want to learn more about LabVIEW, I suggest you try looking at some of these tutorials.


___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(2,669 Views)

Slice the array columns and reassemble them into a new 2D array.

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