03-03-2025 09:36 PM
I have been given a signal to analyze, and my first step is to come up with a method of evaluating the effectiveness of the selected filter. My train of thought was to take the derivative of the filtered signal (this is what we want to plot since we are reading some engine data), and then take the standard deviation of the noise from the filtered signal derivative and plot them against each other. My thinking is that the plot would show a smaller std. dev. as the effectiveness of the filter gets better. To do this, I have the following code, but it seems to only be plotting single values, rather than the whole array.
Any help would be appreciated.
Thanks!
03-04-2025 12:39 AM - edited 03-04-2025 12:42 AM
A picture is not code. (we cannot run it, we cannot see what's outside the visible area or what's in the other cases)
Please attach your VI and some typical data. (use "save for previous", 2020 or below if you use a recent version)
Most of the code looks very wrong, e.g. the initialize array and an non-indexing output tunnel that only returns an array with all the same element from the last iteration.