03-12-2018 03:27 AM
Hey everyone.
I'm using LabWindows/CVI 2013 for academic purposes.
Lately my application works really slow in debug mode (Build -> Configuration -> Debug).
When I run the application (Run -> Debug Application) I can observe "Build succeeded" relatively quickly on the Build output.
However, then the application barely loaded and CVI is not responding for long amount time. eventually, the application is loaded, but works slow for several seconds. then it works regularly.
I don't remember that I added any significant code lines lately, so I don't understand how and why it works that slow. what should I do?
Solved! Go to Solution.
03-12-2018 09:44 AM
Hello Raven,
Check if you don't have a big amount of watch expressions. CVI 2013 has a bug that makes watchpoint duplicate which might quickly grow slowing down the execution. Discussion here
03-12-2018 10:47 AM - edited 03-12-2018 10:48 AM
Hey ConstantinP,
Thank you for your quick replay.
I checked the file application.cws, and I saw only one watch expression. I deleted it and unfortunetly it did not change the very slow loading time.
In addition, I tried to load different project with much less code lines and only one interface. This project worked very fast on other computers and on my computer one week ago. I was surprised that the run-time was very slow as well (I think in the same manner). Maybe I accidentally changed something in the CVI options that made this happen? I don't know.. 😞
03-12-2018 11:31 AM
Hi Raven,
Would it be possible to post a sample of the code?
When you mention the code that had less lines, you said that it was good on your computer one week ago. Does that mean that the code with less lines is now very slow to start up as well?
Regards,
Vincent
03-12-2018 02:43 PM
Yes, the code with less lines is very slow to start up as well, and it wasn't like that a week ago.
I made a test - I restart twice, opened CVI and created a new simple project with a very simple user interface.
When I pressed the green triangle (Debug Project) it was very slow again. In the figure you can see the code, and in the title above "Not Responding"
03-12-2018 04:03 PM
Hi Raven,
Thanks for the pictures! I tried making a practically empty project, but no luck on my end. Everything runs as normal for me when launching the GUI.
The only thing I can think of is CPU usage. There were a few things I wanted to try out and wanted to know what results you got if you have tried them out already.
1.) When restarting the computer that is running the CVI debug, do you still lag when using the debug mode after the reboot?
2.) When creating a release or debug executable, do you still see the same "Not Responding" issue?
Regards,
Vincent
03-12-2018 04:44 PM - edited 03-12-2018 04:46 PM
Hey Vincent,
Thank you for the quick replay.
Actually you are the lucky one, because this problem is really annoying 😉
(1) Yes, unfortunately the lag remains the same after restart.
(2) When I work on release mode (Build -> Configuration -> Release & then ctrl+F5) the panel is loaded in less than a second.
One more thing, I don't know if it's a part of the problem, or another different one - when I created a new project, exit, and then try to reload it I get the following message: "Unrecoverable Internal Error at 0023:10ADA968
LabWindows/CVI is aborted.
I created this file from the Environment mode using bin\ConfigCVILogging.exe, I think it was created when I pressed the Debug button..
03-12-2018 04:47 PM
Hi !
Can you run the windows task manager and upload an image of the process that is running so we can see the CPU usage and the memory.
03-12-2018 04:55 PM
Hi Raven88
Can you explain us a little bit your project? are you calling a dll or something like that?
Is this happening only one project or multiple projects?
Can you open an example?
03-12-2018 04:58 PM - edited 03-12-2018 04:59 PM
Yes, I hope I understood what you meant,
I took the picture two seconds after I pressed the debug button.
thank you for trying to help!