LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CPU rise sharply when open my main VI

Solved!
Go to solution

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!

0 Kudos
Message 1 of 10
(4,178 Views)

Do you have some interesting custom controls? Can you attach your front panel so we can see if we have a similar issue?

Message 2 of 10
(4,154 Views)

Do you have a lot of overlapping controls? Any XControls? Anything else unusual?

Message 3 of 10
(4,144 Views)

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. 

0 Kudos
Message 4 of 10
(4,141 Views)

Yes, I do have a lot of overlapping graphs.

0 Kudos
Message 5 of 10
(4,137 Views)
Solution
Accepted by Xinghe.W

Try copying everything into a new VI, then delete the controls one-by-one to see if you can find the main offender.

Message 6 of 10
(4,130 Views)
Solution
Accepted by Xinghe.W

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.

Message 7 of 10
(4,121 Views)

I learned something new.  i didn't know that controls could eat up CPU cycles even when a VI isn't running!

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 10
(4,110 Views)

And that burden will be carrying on when you run that VI. Feels great to solve this! 🙂

0 Kudos
Message 9 of 10
(4,098 Views)

🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 10 of 10
(4,088 Views)