From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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: 

how to eliminate elements in a 1D array

Solved!
Go to solution

I want to know how to remove elements from 1D array. Let say 1D array has 30 elements. I want to keep initial 10 and get rid of remaining 20 elements. 

 

How can I do that. See attached image for more clarification

 

Thanks

 

JK

 

length array.jpg

0 Kudos
Message 1 of 3
(2,601 Views)
Solution
Accepted by topic author josephkirmani

Have a look at the LabVIEW Array functions. There's a delete from array or an array subset that you can use for your purposes.

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 2 of 3
(2,577 Views)
Solution
Accepted by topic author josephkirmani

In  this case, I would use Array Subset.


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 3
(2,574 Views)