Discussion:
How to create a smooth color ramp for Intensity Charts/Graphs
(too old to reply)
codas
2005-12-02 14:10:41 UTC
Permalink
How can I create a smooth color ramp for Intensity Charts (Pic:
bilinear.png). By default I only get about 10 colors and it uses the
same color for a big range of values (Pic: bilinear2.png).


bilinear.png:
Loading Image...


bilinear2.png:
Loading Image...
Warren Massey
2005-12-02 17:10:45 UTC
Permalink
If you go to your front panel and right-click on the intensity graph color ramp is the "interpolate colors" option checked?
It should be. Then all you need to do is to (as a minimum) specify the "high color" and the "low color" to define the ramp.
codas
2005-12-05 09:10:55 UTC
Permalink
That's exactly what I did. 'Interpolate colors' option is checked.
Specifying the 'high color' and the 'low color' creates a bar with the
specified colors at the top and bottom position in the color ramp, but
nothing else. Reading the 'Color Table' I get an array with 256
different colors. But the ramp only shows about 10 colors. I'm using
LabVIEW 7.1 for Linux.
becktho
2005-12-05 09:10:55 UTC
Permalink
This sounds maybe a bit silly - but did you check the values you wired to the graph?
If you just have ten different values, you will just see ten different colours.
codas
2005-12-05 10:11:42 UTC
Permalink
I just play arround with variations of the example 'Bilinear_interpolation.vi' by Christian Altenbach postet in the ' Interpolating pixels in the Intensity Graph

'
thread. This example generates an 40x40 array with about 1600 different
Values between 0 and 12. The result I get is shown in the
'bilinear2.png' I postet in the first message.
codas
2005-12-05 10:40:55 UTC
Permalink
The Colortable shows 255 different Colors from black over blue to
white. I already changed this to other color tables like given in the
Example 'Common Intensity Maps.vi' (LV Example Finder). I never get a
smooth color ramp.
becktho
2005-12-05 10:40:56 UTC
Permalink
That's strange. Unfortunately I can't reproduce this behaviour, as I use LV7.0 on Windows platforms.
I'd suggest to search the forums once more (maybe more with focus on linux) and, if not successful, contact NI.
codas
2005-12-07 08:10:38 UTC
Permalink
I would say, that my display system handles about 65536 (16 bit)
different colors and this is equal to 256*256. This shouldn't be the
problem.
Ben
2005-12-07 17:10:51 UTC
Permalink
Please post the code as you are using it.
We are much better with visual aides.
 
Ben
codas
2005-12-12 09:11:05 UTC
Permalink
NI suport said, it should be a problem of color depth or a driver probelm. They can not reproduce the problem. I'm using:
SuSE Linux 8.2
Color depth: 16 Bit (65536 colors)
User Interface: KDE 3.1.1


IntensityGraph256Markers.png:
Loading Image...


setMarkerValues.vi:
http://forums.ni.com/attachments/ni/170/156225/2/setMarkerValues.vi


IntensityGraph001Markers.png:
Loading Image...
Warren Massey
2005-12-12 15:40:40 UTC
Permalink
The VI works fine using Windows XP. See the attached picture.
 


IntensityGraph256Markers-WinXP-16-bit_display.png:
Loading Image...
Loading...