LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Editing Color Box Value based on input

Hello! I am trying to use LabVIEW color boxes to display colors that vary based on inputted data. I am reading in a CSV file which contains lux, R, G, and B data points (each has its own column). I have taken the averages of each column, and I would like to use these averages and use them to change the color of 3 color boxes that would indicate the average R, G, and B values. Otherwise it would also work to have one color box that indicates a color based on the set of RGB values. Any help would be very much appreciated!

engineer228_1-1616608187940.png

 

0 Kudos
Message 1 of 4
(1,463 Views)

Programming -> Graphics and Sound -> Picture Functions -> RGB to Color

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 4
(1,458 Views)

Why all these coercion dots and disorganized code? Ever heard of the "mean" function? Please attach your actual VI and some data if you want specific help. Getting the colors from 8bit components is a simple left shift by 0, 8, or 16 bits after you converted it to U32 first.

Since you generate averages for each column, you would need an array of three colorboxes, Right? Or do you want a single colorbox that contains the averaged RGB color of all elements?

 

What's the significance of calculating the standard deviation from each row? Is that a different problem?

0 Kudos
Message 3 of 4
(1,457 Views)

Maybe something like this?

 

altenbach_0-1616610097746.png

 

0 Kudos
Message 4 of 4
(1,446 Views)