11-17-2015 04:39 PM - edited 11-17-2015 04:41 PM
Hi, this may be a silly question. I am developing a GUI recently, and I obeserved that when I open my main VI (not running), the CPU usage rises sharply over 40%. I'm using Labview 2015. Does anyone have any idea how does this happen?
PS: The CPU drops as soon as I minimize the FP window of my VI. How strange it is!
Solved! Go to Solution.
11-17-2015 05:28 PM - edited 11-17-2015 05:28 PM
Do you have some interesting custom controls? Can you attach your front panel so we can see if we have a similar issue?
11-17-2015 05:34 PM
Do you have a lot of overlapping controls? Any XControls? Anything else unusual?
11-17-2015 05:37 PM
Yes I made a lot of layers of customized decorations and controls. But since the VI is not running, how can I eat up half my CPU by just showing it's front panel?
I can't post the source code as it belongs to my company.
11-17-2015 05:38 PM
Yes, I do have a lot of overlapping graphs.
11-17-2015 05:41 PM
Try copying everything into a new VI, then delete the controls one-by-one to see if you can find the main offender.
11-17-2015 06:02 PM - edited 11-17-2015 06:10 PM
Thank you for your suggestion. I found one of transparent button is the main course of the CPU rising. The OFF condition of that button is transparent with a red outline. What I need is a button with transparent OFF condition without the red outline, so I set it to be transparent by the tool pallette without a second thought. It turns out to be a very bad idea. Setting a transparent graph to be transparent in Labview is not good.
11-17-2015 06:08 PM - edited 11-17-2015 06:08 PM
I learned something new. i didn't know that controls could eat up CPU cycles even when a VI isn't running!
11-17-2015 06:13 PM
And that burden will be carrying on when you run that VI. Feels great to solve this! 🙂
11-17-2015 06:19 PM
🙂