Example Code

Array(Table) Background Colors based on Thresholds 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 VI generates a random set of data and formats into an array. This array is then passed into a table where the background color of the cells is modified dependent on the individual cell's data value

 

Description

This VI generates a random set of data and formats into an array. This array is then passed into a table where the Background color of the cells is modified dependent on the individual cell's data valueThis application could be easily adapted to operate on real-world data and alert a user of values outside the expected operating conditions e.g. Extreme Temperatures.

 

Requirements:

  • LabVIEW 2012( (or compatible)


Steps to Implement or Execute Code

  1. Run the vi.
  2. Modify the higher limie and lower limit to change the background color

 

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

 

Jamie Jones
Applications Engineer
National Instruments

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

Comments
Fred_A
Member
Member
on

Thank you for this nice VI. Can you add an other VI with an older version of LV please ?

Jamie_J
NI Employee (retired)
on

Thank you for the comment Fred. Added version for LabVIEW 8.6.

Jamie

Jamie Jones
Applications Engineer
National Instruments
SwapsG
Member
Member
on

Thank you for this vi. helpful for me.

$waps.

Zbigniew_StS
Member Member
Member
on

The good point is to use property node : Defer Panel Updates before and after operating at table property.

Regards
Mikrobi (Zbigniew St. Sobków)____________________________________________________________
"You can lead a horse to water, but if you can get him to float on his back you've got something."
Y.Ueno(退職)
NI Employee (retired)
on

It may use the following KB to initialise the GB color.   http://digital.ni.com/public.nsf/allkb/B8700C12AC7CE927862569DD0063CB0A?OpenDocument