LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Slow execution due to front panel background

Hello, I'm experiencing a issue and I don't know how to solve it, it doesn't make any sense for me. In my project I want to use a background image for the front panel (I choosed the metal brushed from LabVIEW). The problem is that with the background the execution is incredibly slow (I measured about 10% more CPU compsumition just because the background).

 

Any ideas why? I'm using LV2011

 

Thanks

0 Kudos
Message 1 of 7
(3,456 Views)

Is that VI a critical one? If not you can set the Priority (VI properties>Execution) as "Background" and execution system as "user interface" and see what happens.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 7
(3,443 Views)

I have not run into the application slowing down due to a FP BG color, but what you could try is  placing on your control/indicators on a scaled "2D picture" control (and import an image similar to what your looking for)  and then monitor your CPU to see if thats what makes the difference Vs. just using the brush tool?? 

___________________________________________________________________
"I have not failed. I've just found 10000 ways that won't work." - Thomas A. Edison
0 Kudos
Message 3 of 7
(3,436 Views)

Well, it does take more effort to draw an image on the background than just a single color.  I wouldn't expect it to cause that much more though.  Are you using a lot of property nodes?  Those would force redraws of the front panel, which is when you would get your hit from having an image.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 7
(3,419 Views)

Hello!

 

No, I'm not having a lot of property nodes. I tried a workaround and it worked, but no idea why: I created a custom boolean indicator with my background image, I resized it in order to fill the screen and then I moved it to backward. With this, the execution time is the same that without any background. The problem is that in some boolean controls, I can see a "shade box" as it's shown in the picture because they are disabled and grey out. How can I fix it in order to have greyed just the button? 

 

Untitled9.png

 

Thank you!

0 Kudos
Message 5 of 7
(3,411 Views)

Is your graphics driver reverting to software rendering, I wonder?

0 Kudos
Message 6 of 7
(3,401 Views)
What happens of you instead of the boolean place a picture control.
/Y
G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 7
(3,399 Views)