cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Darren's Occasional Nugget 07/17/2014

Highlighted

Darren's Occasional Nugget 07/17/2014

Today's nugget has to do with Intensity Graphs and Intensity Charts. By default, they have a blue color map for the Z scale:

 

int1.png

 

If you want to reconfigure the colors, you can right-click any of the numbers in the Z scale and choose Marker Color. It is also possible to programmatically manipulate the scale with the Color Table property of the Intensity Graph/Chart. 

 

I have attached a VI below called Intensity Color Tables.vi that allows you to select between several pre-defined color maps for your Intensity Graphs and Charts. The VI generates the Color Table array that can be wired to the Color Table property. I think my favorite color map is "fire":

 

int2.png

 

Check out the demo VI (in LabVIEW 2009 or later) to see the Intensity Color Tables.vi in action.

Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Message 1 of 3
(3,890 Views)

Re: Darren's Occasional Nugget 07/17/2014

Awesome, thank you for posting!!

Rahul B.
0 Kudos
Message 2 of 3
(3,681 Views)

Re: Darren's Occasional Nugget 07/17/2014

And this shipping example shows an practical usage of this feature:

 

C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Signal Processing\Transforms\STFT Spectrogram Demo.vi

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 3 of 3
(3,598 Views)