Example Code

Scrollbars with Clusters and Arrays Using 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

 

Overview
When clusters become large, some may find minimizing the display of that cluster on the Front Panel to be tedious. However, LabVIEW does not currently support native scrollbars for a cluster. This program demonstrates ways that users can add custom scrollbars to a cluster and an array.

 
Description

This program demonstrates three known workarounds for implementing scrollbars in a cluster. Each has its own limitations and drawbacks. Keep in mind that there are other numerous ways to configure Front Panel data and these may not be the best approach for most cases.

  1. Sub Panel using a separte VI that simply displays the cluster.
  2. Programmatically altering the cluster properties using a separate scrollbar.
  3. Using an array to display the cluster as well as creating a separate custom scrollbar for a single element of the array.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Open the project.
  2. Open and run Main.vi.

 

Additional Information or References
VI Block Diagram

1.png

Front Panel

 2.PNG

 

 

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

David C

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

Comments
UMASO
Member
Member
on

Thanks much for posting this example.  Though the example is simple, it really well demonstrates three different ideas, one of which resolved my case.