01-19-2007 02:41 PM
01-19-2007 03:25 PM
A program where the timing depends on the CPU speed, is very sloppy. There are two possibilities for the program to fail: (1) race conditions and (2) missing specific delays to wait for the instrument hardware to be ready.
So far you are exclusively blaming cause (2) but I don't think you have fully explored all possible causes. It is very well possible that there are also race conditions.
Slowing everything down is not the correct solution, because it does not fix the fundamental problem. (Well, you could permanently run it in execution highlighting mode, but thankfully that is not supported in a built application 🐵
The bad news is that you you need to sit down and fix the program. Don't just throw a roll of duct tape and bailing wire at it! 🙂