From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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

Event Based Dynamic Display Subpanels in LabVIEW

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

Download All

Overview

This example demonstrates how to create an application that will have dynamic displays adapting to specific measurements done in the application.

 

Description

The example is based on sub panels to which specific displays from child classes are loaded. This can be done because the interface for all displays is the same and allows to have one dynamic dispatch method which is then overriden in the child classes.

 

This type of display can be used to display multiple different measurement results in a plug in architecture of simplify modifications to the application if only one specific result needs a new display.

 

Requirements

  • LabVIEW 2013 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the program.
  2. Select one of the classes located on the left hand side of the panel.
  3. Click on Settings, and Play.
  4. Notice that different screens will appear based on different classes, and buttons pressed.
  5. Press Stop to exit the program.

 

Additional Information or References

Main vi block diagram:

capture.JPG

capture2.JPG

 

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

 

Piotr Kruczkowski
Certified TestStand Architect
Certified LabVIEW Architect

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

Comments
wuhen
Member
Member
on

thank you