The signal input is 4-20 ma into a DAC, and I'm having a rough time keeping the measured sensor value stable at it's calibrated zero when certain environmental factors cause the sensor to react suddenly for a brief period and then return to it's zero point. Ideally, I'd hope to use the PID function in the embedded software to filter out sudden large spikes from the sensor output, so the measured reading stays 0 unless it sees a stable reading indicating an actual measurement is being taken by the operator.
The error will last anywhere from 1-3 seconds at a time. I've tried a method of filtering the DAC output with software filtering, with limited success...
A normal looking signal during