LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in IMAQ IntegerToColorValue ?

There seems to be a bug in IMAQ IntegerToColorValue. When converting a system color into RGB values the answer is zero for Red and Green, and a small integer for Blue. Attached VI demonstrates problem. Other colors are OK. Labview 6.1, Vision Development Module 7.0.

Martin
0 Kudos
Message 1 of 8
(3,532 Views)
There is no such problem on my PC. The RGB color values and display are OK.

CC
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 8
(3,522 Views)
There is no such problem on my PC. The RGB values and display are OK.
But I use LV 7.1... Could that be a compatibility problem between Imaq vision 7 and LV6 ?
Chilly Charly    (aka CC)
0 Kudos
Message 3 of 8
(3,520 Views)
Hello Martin

I can regenerate your problem and you are right it seems as a bug!!! I will report the issue to R&D and see what they have to say. It's only like that when you choose the system color, but choosing some color from the color chart does not give this behavior.

Thanks
Mohadjer
0 Kudos
Message 4 of 8
(3,509 Views)
Hello Martin

Here is some feedback on the issue...

We should document that the VI ignores the alpha channel of the integer value, and that LabVIEW system colors use the alpha channel.

Hope this helps you out!

Regards
Mohadjer
0 Kudos
Message 5 of 8
(3,491 Views)
Probably a user who uses IntegerToColorValue is not interested in the technical details of the alpha channel, but only in getting the RGB color components. Suggest to fix IntegerToColorValue to that effect.

Martin
0 Kudos
Message 6 of 8
(3,487 Views)
The system colors set values in the alpha channel, which we don't use. We do correctly interpret the RGB portion in the mentioned VI's!

Mohadjer
0 Kudos
Message 7 of 8
(3,487 Views)
I am not discussing what you are doing, I am discussing what you should do. With risk of repeating myself: When using the IntegerToColorValue, one is interested in the Red, Green and Blue content of the color, not which values that happen to be stored in the Red, Green, Blue, Alpha "slots" of the color! Thus if these values do not reflect the actual color content, the result is unasable.

Martin
0 Kudos
Message 8 of 8
(3,481 Views)