LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting Numbers less than a threshold from an Array

Solved!
Go to solution

Hello All,

 

In my code, it outputs an array of the difference between the peaks in milliseconds the array called PPI's. I want to delete any elements in the array which are smaller than 850. Any ideas on how to do that? I've attached my code for reference, and the data required to make it run.

 

 

Regards, Sean

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

aplogies, this is the latest version of the code

0 Kudos
Message 2 of 5
(3,070 Views)
Solution
Accepted by topic author seancassidy

Conditional indexing tunnels makes this trivial.


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 5
(3,061 Views)

Thank you for your swift reply, worked a treat.

0 Kudos
Message 4 of 5
(3,050 Views)

I find it useful to think of deleting stuff from an array as creating a new array with only the stuff I want to keep.  Which is exactly what the code above is doing.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 5
(3,029 Views)