‎02-03-2026 02:12 AM
Hello,
I need help finding the necessary tools to analyze/determine our processing times.
We've been developing our software for several years now, so it has a few lines of code and features.
In Release (and simulation), everything works fine. Processing time is around 50-100 ms, with NI cards (at 2 kHz), and a loop (EveryNCallback) is around 250 ms.
In Debug (# since 2020), everything seems extremely slow (> 500 ms)... inevitably resulting in crashes in EveryNCallback (error -200279). Normal !
Note:
For information, we implemented producer/consumer (ThreadSafeQueue), various timers ... managements in the past,
but I'm really not looking for answers related to that subject...
Unfortunately, we did not resolve the problem in time...
And now, in debug mode, it's a complete nightmare.
So I would simply identify any features in our code, that are time-consuming and/or called too frequently,
in order to improve them.
A long time ago, I used these kinds of tools in LabVIEW... and maybe even in LabWindows/CVI.
But I'm getting old and I've forgotten how to do it under LabWindows/CVI.
Could you help me?
Thanks in advance.
‎02-03-2026 11:18 PM
Hi
I am using the following crude & simple method
start_t = Timer() ;
...some code
end_t = (Timer() - start_t ) * 1000.0 ;
SetCtrlAttribute(panel , PANEL_NUMERIC , ATTR_CTRL_VAL , end_t) ;//a numeric on the gui to display on going time
another thing can can help is to set the debuging level to "NO RUNTIME CHECKING"
this will speed up your debug but you will not have full featured debug mode
Good luck
‎02-04-2026 01:52 AM
Hello,
Thanks, but I already use this method to verify the process during debugging and some monitoring.
Actually, I'm looking for a similar feature (in Tools menu) into LabVIEW.
You run the code, and it shows you which functions are called, how many times and how long they take.
This helped me in the past to optimize our first software, but it was under LabVIEW.
Now, we use LabWindows/CVI.
‎02-04-2026 01:59 AM
Try under tools-> execution profile viewer . i think you need to install profiler toolkit for cvi
‎02-04-2026 03:02 AM - edited ‎02-04-2026 03:47 AM
The Execution Profiler Toolkit is included in CVI Full edition at least from CVI2015; according to the documentation, in CVI2020 it is included in base version too. Depending on your choices it may not be installed, but you should be able to rerun the setup and install the toolkit.
‎02-04-2026 11:39 AM
Hello guys,
Thank you very much for this information, it seems to meet my expectations.
I will try using it soon.
N.B. : I am using LabWindows CVI 2020 f4, with its main toolkits.
‎02-05-2026 02:12 AM
Hello,
also when in debug mode, do not set any watch on variables, it is excruciatingly slow...