LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading ColorMapColors from CWgraph3D control

I am trying to create legend for my 3D plot.

I can read ColorsMapValues and ColorMapColors properties of CWPlot3D but the ColorMapColors array contains very dark elements even though the actual plot shows ColorSpectrum map.
I am converting array variant to array U32. Has anyone had similar problem?
Thanks
0 Kudos
Message 1 of 3
(2,906 Views)
You can try adding an offset (with a simple ADD numeric)

Also, you can use a log multiplier to achieve an effective "gamma" correction.

Eric
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 2 of 3
(2,906 Views)
Hmmm, I could be way off-base here, but there is a chance that your problem is caused by the fact that the CWPlot3D uses OLE colors rather than LabVIEW's Color format. Take a look at the VI "Convert OLE Color.vi" which may be found on the "3D Graph Properties" palette (also located inside "/Platform/3dgraph.llb"). These VI may be used to convert between LabVIEW Color and Ole Color.

Good luck,

-Jim
Message 3 of 3
(2,906 Views)