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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System colors do not give correct RGB values

When using the IMAQ integer to color value function, I get correct RGB values for colors chosen via a color box control  - except if the colors are selected from the “system colors”. Is this supposed to happen? The RGB values for the system "White" is: 0, 0, 9.
0 Kudos
Message 1 of 2
(2,542 Views)

 

That function does look at the most significant byte. Try wiring the system color to a "Split Number" (numerics "Dat manipulation) to split the I32 to two I16 and then again to get four I8s.

 

You will find that the "other" bytes has a "1".

 

System colors are special.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 2
(2,530 Views)