Example Code

Programmatically Change the Text on Another VI's Front Panel

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 opens a VI and changes the front panel text depending on the selected resolution.

 

Description

The program allows you to select the path to the VI you want to view and the resolution at which you want to view it. The VI adjusts all font sizes and front panel controls appropriately for the resolution you choose.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code
1. Select the VI you would like to make the changes on.
2. Select the desired resolution.
3. Select the Run button.

 

Additional Information or References

Snippet.png

Chris Van Horn
Applications Engineer

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