03-21-2007 05:40 PM
03-22-2007 04:51 PM
Although you are getting a longer delay than you are wanting, this can be caused by a few things. One large factor in delay times being slightly off are that, unless you are using a real-time system, your PC is non-deterministic and will not guarantee your delay being exact and occurring at the exact same time each iteration.
Another factor, partially building on the one above, is the code you are running and how long it takes to execute. If you have a 10 ms ‘wiat ms.vi’, but your code takes 20ms, then the delay will be ignored because your code ran longer than the wait timer. This KB explains more about the wait functions.