Thank you johnsold.
I have test your vi (and try to understand how it works).
Please correct me if I'm wrong : You change the value of the data scaned if the signal data is over the threshold.
Question : what is the command that fix the value of the threshold?
Other question : my array is a 2D array. how can I do the same thing with it? (with a for loop, and indexation I suppose)
The last question is : I have puted a reverse FFT to see the signal filtred, on the graph, the first values seems to be higher than the initial array. why? is it a mathematical error? (no problem with it, I just cut those first values out, but I want to understand why...)
If I understand well, I jsut have to put the same thing in serial to have two frequency filters.
Other question : Why you dont use a filter bloc made in labview?
The way i was thinking the vi is as follow :
I test the signal with a FFT, do the over threshold detection. If one (or two) peak(s) over the threshlod is detected, the you filter the signal with a simple filter.
What do you think about this method? Is it a good way to construct my application? If not : why?
Please find an example of the way I was thinking the vi (doesn't work correctly, but the idea is there)...