Instead of Wait, use a Timed Loop. It is much more accurate. Also, with the wait function in a sequence structure, the first pane will execute and take some finite time. Then the wait will execute. That means that two step process is taking more than the wait time you specify. If you use a Timed Loop, the entire loop will take 100mS to run. So the counter will run, and the remainder of the 100mS will be the wait. The effect is that the counter will run once exactly every 100mS.