You could use the structure posted
http://www.chiefdelphi.com/forums/sh...5&postcount=13. That make the loop run for 15 seconds and it will also monitor the amount of time elapsed in ms. This gives you a little more resolution and allows for a smaller step if you're trying to ramp based on time