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 comment

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 comment
  • 4 weeks later...
  • 7 years later...
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 comment
  • 2 weeks later...

Same trick can solve flickering of the cursors of a graph when the graph data is updated. However, it can result in seemingy unrelated errors, for example triggering an autoscale on an axis with property-node doesn't work the same way as without the transplarent overlay, so far as I remember. This is obviously just a simptom of some updating (order) thing. So if you have any "special" behaviour of your control/idicator, you better test everything (which is close to impossible), or try to recall this hack if something that once worked stops working as expected.

Link to comment

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.