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: 

Thresholding an array

how should we threshold an array

say i have and array 1 2 3 4 5 6 and i want to store the numbers 4 5 6 into another array how do i do it

0 Kudos
Message 1 of 6
(3,650 Views)

Hi kst,

you can do it with the "array subset" function.

 

Mike

0 Kudos
Message 2 of 6
(3,645 Views)

Assuming by threshold you mean keep the values above a certain value, it is often a simple job for the bucket brigade.  Here is my ready-made snippet for this common problem.

 

SimpleBucketBrigade.png

0 Kudos
Message 3 of 6
(3,634 Views)

...

thanks Darin,

 

or like this.

 

Mike

0 Kudos
Message 4 of 6
(3,626 Views)

wat is does your vi look like in the false side. can you attach you files i mean .vi file to the reply

0 Kudos
Message 5 of 6
(3,551 Views)

hi mike where can i get the threshold peak detector.vi file is it available online

0 Kudos
Message 6 of 6
(3,549 Views)