07-17-2014 03:20 AM
Hello,
I'm trying to create a subVi to filter a signal wich is stored in an array. I need to delete all elements wich are out of a user defined range. (something wich takes the array, the maximum and the minimum and returns the array cleaned).
I've tried to do this for a day, but without result ...
Someone can help me ?
Thanks in advance
Eugenio
Solved! Go to Solution.
07-17-2014 05:08 AM
well your statement is not clear what do you want.
what i understand is you have an array in which you want values after and before threshold.
that you can achive with search 1 D array for specific value and split array.
can you show what you have tried so far
07-17-2014 05:26 AM
yes exactly, I have an array and need to eliminate all the elements wich are not inside the threshold.
Til now I've done this. Every element out of range becomes NaN.
Now with search and split elements out of range must be eliminated, but how ?
07-17-2014 05:26 AM
yes exactly, I have an array and need to eliminate all the elements wich are not inside the threshold.
Til now I've done this. Every element out of range becomes NaN.
Now with search and split elements out of range must be eliminated, but how ?
07-17-2014 05:28 AM
sorry swaped labels of limit controls
07-17-2014 05:41 AM
Is this what you want ?
07-17-2014 05:43 AM
its okay do you know in range and coerce function works on an array also.
07-17-2014 05:46 AM
Thank u !!!
07-17-2014 06:06 AM
okay just another solution.
if you have version of LabVIEW in which you can enable conditional terminal in for loop life is much simpler.
07-17-2014 06:24 AM
If you have a version with conditional indexing: