LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

filter numbers

Hi,
is there a way to filter numbers, in such a way that i only want the numbers in between. For instance, i collected 15 current data when set at the same voltage, how can i filter the first 5 data and last 5 data off, such that i only get the middle 5 data as the filtered data?
adeline
0 Kudos
Message 1 of 4
(2,799 Views)
Get the length L of your data array (for instance using "Array size").
Then, use the "Array Subset" function (in the Array sub-palette), wire the number n of values you want to discard from the start to the Offset input, and wire the length of data you want to retrieve as L-n-m to the length input, with m being the number of data you want to discard from the end.
Chilly Charly    (aka CC)
Message 2 of 4
(2,799 Views)
Hi chilly charly,
does the above apply for a case of 2D array of n sets of 15 data? or does it only apply for 1D value of 1 set of 15 data, where L=15? If can, is your suggested method still applicable?
thanks, adeline
0 Kudos
Message 3 of 4
(2,799 Views)
It works with any dimension arrays, but avoid mistaking lines and colums !
In the case of a 2D array, do exactly the same wiring on the two upper input connectors (lines) and leave the two lower connectors unwired (select all columns). This will remove the first and last LINES of the array.
Chilly Charly    (aka CC)
0 Kudos
Message 4 of 4
(2,799 Views)