global endtime = systime()
global testdata = Sensor[starttime,endtime]
global smoothedData = smooth(testData,12)
beginSeq(StopStream)
if ((min(testdata) < 4.81) || (max(testData) > 5.11))
OutofRange = 1
endif
i was wanting to smooth the raw data as it came in but another Azeotech told me it's really hard so since in am testing the (testdata) i tried to smooth it before it was processed, but i am still having a hard time getting the good part to pass inside the numbers i set. They are the ones from the graph that is set to with the same smooth command smooth(Sensor,12) as my Y expression.
Also the first half second of the signal is a high spike, how to i keep that out of the testdata?