LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting an array for a given range

I'm a little stumped here.

I have an array of data that I would like to filter out values less than
A and greater than B (A and B are float numbers). I've tried using case
structures, and I've tried using for loops. Does anyone have any written
VIs (or sub VIs) that can take an array and sort out what one wants?

I'm still working at it, and am going to look at the array element by
element (the array is a 2x2048 array and I'm looking at the first sub
array what is the criterea *say a given data set is 100 seconds long,
and I need 25 to 50 seconds only*).

Thanks.

-Dorian


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 1 of 2
(2,365 Views)
Try using the example program for sorting an array. Modify it with an in
range? .vi.

Or, sort it 2 times using the example.

Or feed it into a while loop, sort it element by element and accumulate the
data on the boundary.



Dorian Grey wrote in message <824jfk$bch$1@nnrp1.deja.com>...
>
>
>I'm a little stumped here.
>
>I have an array of data that I would like to filter out values less than
>A and greater than B (A and B are float numbers). I've tried using case
>structures, and I've tried using for loops. Does anyone have any written
>VIs (or sub VIs) that can take an array and sort out what one wants?
>
>I'm still working at it, and am going to look at the array element by
>element (the array is a 2x2048 array and I'm looking at the first sub
>array what is
the criterea *say a given data set is 100 seconds long,
>and I need 25 to 50 seconds only*).
>
>Thanks.
>
>-Dorian
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
0 Kudos
Message 2 of 2
(2,365 Views)