Example Program Drafts

Showing results for 
Search instead for 
Did you mean: 

Array(Table) Background Colors based on Thresholds.

by Member Jamie_J on ‎11-05-2012 04:22 AM

Hello Developers,

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. This process is not achievable with Array Properties however is relatively simple using basic logic and Table Property Nodes; in particular ActiveCell and CellBGColor. Specific cells are indexed based on the iteration values from the For Loops.

This 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.

The Front Panel allows users to specify how these background colors are changed with two Threshold Controls: Upper Limit and Lower Limit.

Cells with a value less than or equal to the lower limit will be colored Blue, cells between Lower Limit and Upper Limit Green with finally values over the Upper Limit colored Red.

ArrayThresholding.png FP.JPG


1. Set your desired Rows and Columns for the generation of a random data set.

2. Set the Upper and Lower Limits for thresholding and then Run the VI.

3. Observe the array and table indicators populate with the random data set. Observe the Cell Backgrounds change color dependent on the value's relation to the specified thresholds.

Thank You.

Member Fred_A

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

Member Jamie_J

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


Member SwapsG

Thank you for this vi. helpful for me.


Member Zbigniew_StS Member

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

Member yueno

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