Example Code

Programatically Edit Table Properties 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

Download All

 

Overview
This example shows how to edit the properties of multiple table cells.

 
Description
This piece of code demonstrates how to change the bold state and font color for elements of a table on the front panel. The same principles shown in this program can be applied to other properties, such as the cell background color, or italic state.

Currently the application allows you to set the bold font state of all cells and the font color state of all cells. There is also the option to change the font color of individual cells, using the color box array on the front panel and the enable option.

Simply select the options you wish to see, and click run.

There are also simple benchmarking features added in to view the time taken for the VI to execute. 


Requirements

  • LabVIEW 2013(or compatible)


Steps to Implement or Execute Code

  1. Open Mass Table Edit.vi
  2. Select the settings you wish to see displayed on the table
  3. Run the program 

 

Additional Information or References

VI Block Diagram

 1.png

 

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

 

Matt H
Applications Engineer
National Instruments UK

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