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: 

Problem with extracting column from 2d array

Hi all, I have problem with extracting columns from 2d array and saving it to the cluster which contains 5 arrays. Could you tell me what am I doing wrong? I attach my project to this post. The txt file has 5 columns and 6 rows. Also how to make it possible that the 1st row will be string and the others arrays of doubles.

Download All
0 Kudos
Message 1 of 5
(3,323 Views)

enable context help with ctrl+h and hover over stuff, that often tells you what is wrong (like source and drain mismatch)

 

you should ignore the first row after reading from spreadsheet, the strings result in 0 values in your array

 

your index-array inside the forloop is still in 2D mode, and thus not working on 1D array

 

 


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 2 of 5
(3,299 Views)

Ok so how it should be done? I know that somewhere at the end I have to use bundle by name function, but I'm not sure how to do that properly.

0 Kudos
Message 3 of 5
(3,268 Views)

Hi,

I think you should go thru the LV basics first (http://www.learnni.com/). You can use attached code as a starting point to acomplish given task...

CLA, CTA, CLED
0 Kudos
Message 4 of 5
(3,225 Views)

Hi Husarz,

Could you make your attached file backward compatible such as LabVIEW 2014, 2013. I cannot open it because your attached file is later version than I am using.

Best Regards,
Dhans 😉
Kudos are welcome 😉
Aspirant Labview Programmer (Labview 14) 😉
0 Kudos
Message 5 of 5
(3,216 Views)