Jump to content

How to stop LabVIEW indicator from flickering?


Recommended Posts

Hello all,

The version in use: LabVIEW 2011

You'll need two machines to see the issue I'm about to present. One of them will obviously have the LV development suite installed on it, while the second one will only have the Run-Time Engine (RTE) installed.

Step One:

Open the attached project, run the VI, and you'll see that the "simple timer" works as expected (the display does not flicker)

Step Two:

Create an executable and copy it to the machine that has only the RTE installed. Run the executable and you'll see the issue then: the display flickers! I'm trying to figure out a way to stop that behavior.

Would you please share your thoughts?

In advance, thank you very much.

edp

TimerProject.zip

Link to post
Share on other sites

Hello,

In case you were following this one... here is an update:

I have found a work around! But regardless, the "flickering" problem I'm seeing on my production machine MIGHT (not proven just yet) be related to HARDWARE!! yes, the video drivers on each of my machines is different!! My dev machine is a GATEWAY - and no, I'm not getting a commission for using the brand-name :-) where as my Production machine is an "ACER". One of my colleagues has an "ACER" as his dev machine, and the "flickering" problem is there as well!

In any case, take a look at the workaround. First png on top is the original VI with the flickering problem, and the 2nd png on the bottom is the workaround

post-14457-0-69661800-1354290313_thumb.p

post-14457-0-41123700-1354290316_thumb.p

Link to post
Share on other sites
  • 4 weeks later...

I had a problem with a flickering numeric display and was able to fix it by placing caption text inside of the indicator. In my case it was a time display so the caption 's' to the right of the left justified numeric seemed fitting.

Link to post
Share on other sites
  • 7 years later...

Still valid in LV2020 on brand new HP workstation, tip of viSci works for me. Just placed a caption '.' over the control where it isn't visible and flickering is gone!

Link to post
Share on other sites
1 hour ago, Beuf said:

Still valid in LV2020 on brand new HP workstation, tip of viSci works for me. Just placed a caption '.' over the control where it isn't visible and flickering is gone!

That's because if you do any overlay of anything in LabVIEW, LabVIEW will be forced to fully redraw the entire control every single time rather than trying to use optimized region update APIs in Windows. And the graphics driver for your video card seems to have some trouble with proper region drawing.

Of course full redraw will be usually considerably slower so it isn't a perfect solution at all.

Edited by Rolf Kalbermatter
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.