You mention that you use the "wait" function to wait 50 ms.
Try the "wait untim ms multiple", this helps give mush more reproducible values, as the time your code takes to execute isn't added to the wait as it is with the normal "wait" function.
The first execution may be off a bit, but the second and later should all be pretty close to 50ms.
Hope this helps
Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)