Yes, I can explain it. CVI has a sleep policy that effects things like this. It does this in order to take less of the CPU processor time unless it is needed. You can set the sleep policy with the SetSleepPolicy function. In general, the way our sleep policy works is that in the default "Sleep More" state, it peeks for mouse events and system events going on in CVI, and if there are none is sleeps some to give time back to the OS for other applications. So what is happening is, your application sees NO interaction going on with the application (no mouse activity, no system messages, etc.) so it gives time back to the OS.
You will notice that if you set the sleep policy to Do Not Sleep, then you will see consistent and very fast performance regardless of
mouse activity.
Best Regards,
Chris Matthews
National Instruments