LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Framed Color box question

Solved!
Go to solution

In the attached program,I want to be able to control the color of the intensity graph using a framed color box.

I am confused about what numeric representation to use etc.

I was wondering if someone might be able to finish off this part of my program for me?

0 Kudos
Message 1 of 9
(190 Views)
Solution
Accepted by topic author LED47

The colors of an intensity graph are defined by a color ramp of 256 values (8 bits). The range of z values gets mapped into that range. You can define the marker colors using property nodes.

 

 

For a simple 10x10 color board, you could just use a 10x10 array of frameless colorboxes instead.

 

 

(On a side note: Why would you need 4 diagram constants with a "10" value if one would be sufficient? Your indicator belongs after the loops, no need to update the indicator 100x in a nanosecond. You'll never see intermediary results unless you place a wait. Why all that code if you want all elements to be the same?)

Download All
0 Kudos
Message 2 of 9
(171 Views)

In my test example I am indicating measurement results with color as I sweep XY across a wafer.

 
 

Screenshot 2026-04-08 081046.png

 I chose a 10 by 10 iterations as an example that would be similar to my program

 

 

 

0 Kudos
Message 3 of 9
(159 Views)

An intensity graph is not a picture. The value of the input array is translated to a color using the Color Map and Zscale Range or Marker Values properties.

See the documentation: https://www.ni.com/docs/en-US/bundle/labview/page/intensity-graphs-intensity-charts.html

 

It also links to an example: labview\examples\Controls and Indicators\Graphs and Charts\Intensity Graphs and Charts\Intensity Graphs and Charts.lvproj

Use high color and low color to indicate out of range values.

 

intensity graph color.png

intensity graph colorintensity graph color

 

0 Kudos
Message 4 of 9
(147 Views)

Well as always thank you very much.

I've adjusted my program to reflect the example you gave me and now it works just fine.

 

 

0 Kudos
Message 5 of 9
(139 Views)

Yes thank you very much that information is very helpful to me

0 Kudos
Message 6 of 9
(137 Views)

@cordm wrote:

intensity graph colorintensity graph color


Why do you divide by 255 and then multiply the result by 255 in the top loop? Seems a bit Rube..

0 Kudos
Message 7 of 9
(94 Views)

First I wanted to use less colors, realized that is not possible and then did not clean it up.

The color table is fixed to 256 colors. If you wire a smaller array for the color table, only the first elements in the color table are replaced.

snip_intensity_graph_color_mix.png

cordm_0-1775724024880.png

 

 

0 Kudos
Message 8 of 9
(55 Views)

Thank You!

0 Kudos
Message 9 of 9
(33 Views)