LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dr. Damien's Developement - Colors for Applications

Color use is very important when designing any GUI, and LabVIEW is no different.  In general, you should use system colors and system controls for everything, and restrict the use of any other colors.  This ensures that the application will look good no matter what bizarre color scheme the user decides to use. A good standard test for color use in Windows is the following:

  1. Does it look good under Windows XP blue?  This is the standard scheme, so is probably a given.
  2. Does it look good under Windows XP silver?  This scheme has shows up some background color issues.
  3. Does it look good under Windows Classic High Contrast #1?  This scheme shows up font color issues fairly quickly.  It also differentiates between dialog and window text.
  4. Does it look good under Windows Vista?  I do not have much experience using Vista, so will defer to anyone who can chime in.

One common problem is changing the background color of a text string so it matches a gradient, such as an XP button or XP tab control.  The background color of the System Label is exactly what you want.  Drop one on your front panel and type some text into it so it stays around.  Now use the color picker tool to get its background color.  Color your text this color and it will always change to whatever the background color under it is, even if it is a gradient.  Note that this is not transparent, so it can be used when you want to mask things (e.g. a text label on the edge of a System Recessed Frame).

Graph colors are another major issue. A key point to remember is that red-green color blindness is relatively common (5% to 12% incidence in males, depending on who you reference), so never require your users to distinguish between red and green.  If you must use red and green, provide an alternate means of distiguishing the traces, such as line type, line width, or grayscale.  I usually use light pink, medium blue, and white as the default first colors of a graph (assuming a black background).  This provides three different grayscale values and avoids the red-green problem. Attached are some color utilities (LabVIEW 8.0) to help generate color sets distinguished by grayscale and hue. You should find someone who is color blind and use them to check your interface.  As just mentioned, they are surprisingly common.

 

This post just scratches the surface of good use of color in GUIs. If you are interested in more information, you can find a lot of good info on the web. There are also a plethora of books written on the subject.  Have fun!

Message 1 of 7
(4,638 Views)

Thank you for the utilities and for the comments about color blindness.  As one of the 5 to 12% who experience this, I find the default color sequence on graphs quite annoying.  The red graph is hard to see.

 

Can you post an example of the colors you use or at least their values.  I would like to take a look.

 

Lynn 

0 Kudos
Message 2 of 7
(4,630 Views)

if 10% of the males is colorblind, does it really count as a special group?

 

I have the most problems with distinguising red and green and beamer. So be alarmed when you use a beamer, they suck at color.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 7
(4,611 Views)
Here is a VI I have used in the past for providing colors (brownie points if you can figure out which application it ships with).  I have tried several times to automatically generate a set of colors, but I always end up tweaking them by hand.
0 Kudos
Message 4 of 7
(4,585 Views)

Actually, if you include the number of males with some measurable degree of color insensitivity (i.e. only obvious through standardized test), some researchers put the number as high as 20%. Probably explains why although I have no (for me at least) discernible color blindness I have this one shirt that I say is brown, but my wife swears is green...

 

BTW for what its worth: the percentage of females with some measurable degree of color insensitivity - 0.4%

 

Mike...

Message Edited by mikeporter on 12-23-2008 01:26 PM

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 7
(4,583 Views)

DFGray wrote: 
brownie points if you can figure out which application it ships with.

NI Scope?


___________________
Try to take over the world!
0 Kudos
Message 6 of 7
(4,563 Views)

tst wrote

NI Scope?


Guilty as charged...  Good guess!

 

To be specific, it was originally written for the NI-Scope Soft Front Panel. I believe it is used in other apps, as well.

0 Kudos
Message 7 of 7
(4,558 Views)