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: 

Extracting a smaller array from a larger array

Solved!
Go to solution

Greetings,

I can't seem to figure out how to do this, but it seem simple enough on paper.
I have an array with N rows and 48 Columns.
Where N>301

 

I want to extract the last 301 rows from this Nx48 array. (So rows N-300 to N)
How can I do that?

0 Kudos
Message 1 of 4
(2,466 Views)
Solution
Accepted by nlis12

You can use Delete From Array and delete the first 300 rows.  The remaining rows will be returned to you. 

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
Message 2 of 4
(2,454 Views)
Solution
Accepted by nlis12

nlis12 wrote:

I want to extract the last 301 rows from this Nx48 array. (So rows N-300 to N)
How can I do that?


Use Delete From Array and only wire the length for the row.  Leave the Index unwired and it will default to deleting from the end of the array.  So the Deleted Subset is actually what you want to keep.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 4
(2,430 Views)

So simple thanks!

0 Kudos
Message 4 of 4
(2,423 Views)