Example Code

Programmatically Change Font Properties of Live Updating Table 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

This example shows how to change the text color of a string indicator line by line by using property nodes.

 

Description

This VI changes the color and font size of the active cell. The active cell is selected by the user the same way as choosing an index of a 2D array. In this example, the even iterations will have red and bigger "warnings" and the odd iterations will have blue and smaller "No Warning". This is also confirmed with a boolean, and the iterations will go on for 10 times. This example can be useful when you need to indicate events with certain colors, which will alert the user about the status more visibly.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download the VI
  2. Open VI
  3. Run the VI

  

Additional Information or References

VI Block Diagram

FontProperties.PNG

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

 

Paolo F.
National Instruments
Applications Engineer

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