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.
I want to allow the user of my LabView program to be able to set the colour scale of a picture using a colour palette control also on the front panel. Is this possible ? I use a color table generator but i dont know how to set the color scale of my picture. thk
You can change the colors in an intensity graph by using either the "color table" or the "Z Scale > Marker Values[]" property (don't use both). If you need to change the color table of an IMAQ picture, use the "IMAQ Interger ToColorValue" vi to convert a regular color table array to an IMAQ color array.
I would also suggest checking out the various shipping LabVIEW examples that demonstrate using multiple color tables with intensity plots.
In Example Finder (Help >> Find Examples), look under Analyzing and Processing Signals >> Mathematics >> Common Intensity Maps.vi. It shows how to wire them, and it's also a good source of some common prebuilt color tables.