Skip to main content

Subscribe to our Newsletter

Defer Panel Updates

Defer Front Panel Rev 3

There are times when plotting a lot of data on a graph or table the program will slow down considerably.  When this happens you can use a LabVIEW property called Defer Panel Updates

 

Defer Panel Updates (From LabVIEW documentation)

When you set this property to TRUE, LabVIEW redraws any front panel objects with pending changes then defers all new requests for front panel updates. For example, controls and indicators do not redraw when you change their properties or values. If the operating system requests a redraw, such as if the window is no longer behind another window, LabVIEW redraws the front panel with the current properties instead of the original properties. If FALSE, LabVIEW immediately redraws the changed elements of the front panel.

Setting this property to TRUE can improve the execution speed and memory usage of a VI.

 

This is an example of doing this manually.

Defer Front Panel Updates Old 2

As you can see this is messy.

I have found a function in the Moore Good Ideas Toolkit that cleans this up considerably.

This is an example of the same code using the Moore Good Ideas Toolkit

Defer Front Panel Rev 3

This can be found in the MGI Pallete below.

MGI Defer Front Panel Updates

You can download the MGI toolkit and other cool LabVIEW add ons from VIPM 

For more packages I recommend click here

2 comments

  • Usage of this VI is correct. But the example can be better.

    if the example, array is built and updated to the UI only at the end. Also defer panel update made False in parallel, leading to possible race condition. Better example, lets say the graph is updated inside the loop for 10000 times, then defer panel updates will make it much faster, however we will see only the last update. Let me know if you agree with me.

    • Hello Senthikumar,

      Updating the graph every loop iteration would be very slow.  I haven't done that in a very long time.  Technically you are correct but I would not recommend doing that.

      Yes you are right about the parallel execution.  I will update these examples with a sequence structure to force the defer front panel updates until after the graph is drawn.

      Thanks for your comment!

       

Leave your comment

In reply to Some User

Copyright © 2025 Automated Software Technology LLC All Rights Reserved.

Joomla! is Free Software released under the GNU General Public License.