In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Matthias09 wrote: Guys, just tried this code from Beau New = {Sensor reading} DataBuffer = DataBuffer - Avg + New Avg = DataBuffer / Samples and don't know really how to implement that into the software. Does the samples variable increase with every measurement ? So first measurement means Samples=1, second measurement means Samples=2 and so on? What is the variable I am actually giving out as a result after certain amount of measurement, is it DataPuffer? Thanks guys! :) Matthias ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=175860#m382504 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)