From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

timing difference between debug executable and release exc

I am working with CVI 6.0. I am running my code in the debug mode, and all the tests worked. but after i build released executable and run it, my tests failed - timing related failures. could any one help me out and let me know how to resolve the issue. thanks
0 Kudos
Message 1 of 2
(2,663 Views)
Hi,


Any code running in debug mode will be a bit slower than in release mode. There is always an overhead when giving the user the possibility to debug the code.

The best way to avoid this type of problems is not to rely on execution time but to use a timer to control the pace. Use delay functions and keep things executing in sequence.

Please give us some more specifics on your project so we can help you better.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 2
(2,663 Views)