If you are using NI instruments, such as digital multimeters, function generators, and oscilloscopes, the fetching process will attempt to sleep for 1 millisecond at a time if data is not available. The default system clock resolution on the test system is 10 milliseconds, meaning that a 1 millisecond sleep may take 10 milliseconds instead. I/O Trace and NI MAX configure the system clock resolution to 1 millisecond, so this explains the difference in performance.
One workaround is to configure the system clock resolution in the CVI application by adding the following code:
The resolution of sleep depends on the resolution of the system clock, which is globally configured. The selected system clock resolution can be observed using Sysinternals tool ClockRes [External Link].
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.