From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

color box change with sensor value

Solved!
Go to solution

how can i use a color box to display a sensor value..? i tried but it's just dark blue to light blue..

e.g if i have a distance sensor the colour box will change gradually from red to green(perhaps and yellow for the middle) for a value from 0 to 255.. 

Thanks 

0 Kudos
Message 1 of 6
(2,705 Views)
you can use an intesity chart
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 2 of 6
(2,698 Views)

 

what is intesity chart..? 

labview has nothing about intesity chart in help..

 

0 Kudos
Message 3 of 6
(2,689 Views)
Solution
Accepted by topic author karpa

Try this, just uses some simple interpolation.

 

 

0 Kudos
Message 4 of 6
(2,686 Views)
This one works too.
Tim
GHSP
0 Kudos
Message 5 of 6
(2,683 Views)

although both answers are what i want i liked Darin.K code because is smoother and more easy to edit..

Thanks! 

0 Kudos
Message 6 of 6
(2,678 Views)