LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Icons editor - colors

Solved!
Go to solution

hi all,

 

Why are the colors used in the icons editor not always those included in the subVI icon ?


This problem seems to occur mainly for light colors.

 

look at the example below :


The color (in the icon editor) is not the same as the color in the VI icon.

 

Is this a bug or an expected behavior?

 

 

DifferenceCouleurs.png

Message 1 of 7
(3,312 Views)

Can you post the VI that has that icon for us to play with?  You can strip out all the code and front panel if you want.

0 Kudos
Message 2 of 7
(3,306 Views)
@Raven : I guess you can try with any of your VI. It seemed to happen on every VI we tested 😉
CLAMaxime -- Kudos are a great way to say thank you
0 Kudos
Message 3 of 7
(3,301 Views)
0 Kudos
Message 4 of 7
(3,300 Views)

Thanks for the VI.  I see what you mean.

 

I'm wondering if the color palette for icons is reduced on the block diagram and some colors are being coerced to a reduced color depth.

 

I can draw both colors in the icon itself and see the difference in the icon editor.  But it all looks like the same color for the subVI when its on the block diagram.

Message 5 of 7
(3,286 Views)
You may be right RavensFan. According to the values I got during my tests, it appears that icon RGB colors are saved on 4 bits instead of 8. Those 4 bits are then dupplicated to form a 8 bits word. But I can't explain this behavior. Is it some kind of way to reduce the memory needed to save VIs ?
CLAMaxime -- Kudos are a great way to say thank you
Message 6 of 7
(3,278 Views)
Solution
Accepted by topic author ouadji

This seems to be noted in the Icon Editor Dialog Box help.

 

 http://zone.ni.com/reference/en-XX/help/371361L-01/lvdialog/icon_editor/

 

Icon Color.PNG

Matt J | National Instruments | CLA
Message 7 of 7
(3,262 Views)