Getting Minimum value over a span of time from arduino

Dear Friends...

We have made a data Acquisition system for acquiring 8 RTD and one current sensor data and then taking data to asp.net for further processing.

currently we are generating an array of 9 analogue inputs and then fed to .net program per second refresh rate.

now our problem is that out current data is oscillating about 511(analogue value) i. e. its moving by equal units in positive and negative direction of 511.

can't we program arduino like this that it return us the maximum value over consective 2 or 3 seconds so that in .net we get single highest value.

same we want to do for out RTD sensors.

Please suggest.

Thanks in advance

Davinder Saini
Spectrum Technology

can't we program arduino like this that it return us the maximum value over consective 2 or 3 seconds so that in .net we get single highest value.

Yes, you can. It seems to me, though, that it would be far easier to do that on the PC end.

Thanks .....

Actualy We want single best array input to our PC....

If there any function available which store values over some millisecond delay and return minimum value after one second.

need your suggestions..

Davinder Saini
Spectrum Technology

If there any function available which store values over some millisecond delay and return minimum value after one second.

You use millis() to determine time, relative to when the Arduino was reset. You use an if statement to determine if the current value is higher (or lower) than the saved value. It's trivial.