I am collecting data from 9 channels and saving it to a file with time in the first column and the data from the other channels in the the other columns. the first five channels are getting spikes. I need the data to find the max and min of the values collected so these spikes are giving me false results. I want to replace these spikes with the average of the values around them, but the range changes so I cant just replace data points over or under a certain limit. I think the best way is to take the derivative and see if the slope change is too drastic. What is the best way to do this or does LabVIEW have a function built in? I'll put up a screen shot of some of the data so you can see what is going on. The problem is with the white and red plots in the first graph, and the second graph. It seems like the spikes occur on both channels at the same time, what do you think this could be from and what could I do to reduce it?
No idea what is causing the spikes, but a good way of removing spikes is to use a median filter. You'll find the Median Filter on the "Analyze" > "Signal Processing" > "Filters" pallette.