LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Insert from 2D array to 1D array starting from a specific index

Solved!
Go to solution

Hi.

 

I'm really new to labview and have come across this problem. I will attach a picture below for reference. I want to take the second columns 5th last numbers and input them into the 1D array. But I can't seem to solve it for some reason. The numbers specified are (36, 42.25, 49, 56.25, 64). I've used index array but that only works on the first 5 numbers as you can see. How do I go about this ?

 

ddddasadadasdlabview.PNG

0 Kudos
Message 1 of 5
(1,271 Views)
Solution
Accepted by topic author ab32

Hi,

 

Basically just follow your mindflow :

 

Select second column

Reverse array

Select 5 first values

Reverse  array

 

And done

rev.png

0 Kudos
Message 2 of 5
(1,269 Views)
Solution
Accepted by topic author ab32

(Since you are new to LabVIEW, let me quickly mention that we don't do well with front panel pictures. We prefer actual VIs. Since you are truncating the bottom of the 2D array, we can't even tell if these are the last rows).

 

From the array size, you can uniquely define the starting point of the array subset.

 

Here is one possibility, but there are many. (Try to find at least 3 ways to do it, a good exercise!)

 

altenbach_0-1644424086732.png

 

0 Kudos
Message 3 of 5
(1,256 Views)

Sorry! I had no idea, thank you very much for your kind help. And I will actually try it myself. I appreciate the effort you put down to help me. I will repay you by taking your tips about trying to create other ways to do it also.

0 Kudos
Message 4 of 5
(1,235 Views)

This was a really smart solution. Thank you for your help, I might go with this solution because it felt easy to understand.

0 Kudos
Message 5 of 5
(1,234 Views)