From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

How to Disable/Enable Front Panel Updates

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This program uses property nodes and VI server to programmatically enable and disable controls/indicators from updating on the front panel.

 

Description

The code of writing a random number to an indicator inside the while loop shows the front panel being enabled/disabled.  The main point of the program though is to show how to use property nodes to accomplish disabling/enabling the front panel

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

1. Run the attached VI.

2. Toggle the Enable/Disable Front Panel Updates control.

 

Additional Information or References

 

Block DiagramBD.PNG

 

Front Panel


FP.PNG

 

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Regards,
Jordan F
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
SteveP
Active Participant
Active Participant
on

It seems the VI Reference can be Closed prior to the While Loop.  It is not necessary to wait until the While Loop finishes ?  That avoids having to wire that reference through the loop.

Jeremy_M
Active Participant
Active Participant
on

It even works if you want to update few controls move on front panel smoothly programmatically: defer update move controls and enable update! good thing!

Jérémy M. | LinkedIn - Contact
Don't forget to give Kudos to good answers.