The sample code posted assumes a one second sample time. The system I am working with only samples data every 10 seconds. This can not be avoided due to the nature of the system. What changes need to be made to the sample code to compensate for this. It would seem that I would replace the number 60 with a 6 in the calculations. Is there more to it or any other recomendations you would give to tune the system.