Slow varying inputs

Hi All,

I'm working on a project where I'm trying to sample more really slow
varying inputs, I'm only interested in getting a new value every 500ms
or so and the data will not vary much in this time period.

 From looking at the Comedi API I find function designed to help out
sampling such data, though they all have the status deprecated. Why
are the functions deprecated ? Is there something else that provides
the same functionality ?

If not, does anyone have any filter code that you can share the is
designed to filter out any noise that might be present on the inputs ?
The issues that I'm having right now is that the inputs don't vary
much but I'm getting a measurement values that move back and forth
around the actual value. I assume some of this is digital noise and
some is analog noise (60Hz noise from the mains for example). I would
think someone had already written some code to filter out such noise ?

Any other suggestions would be welcome. I'm trying to measure the
voltage and current of a Ni-Cd battery that is being discharged
through a resistor if anyone was curious...

Thanks
-- 
Daniel Nilsson

Received on 2005-03-03Z03:25:39