Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert U32 value obtained from color control of front panel to float(SGL) for use with IMAQ Draw ?.

I am trying to get user color inputs from front panel and use it in IMAQ Draw. I need to draw an oval of a certain color in a background of another color. Both these color values are user input. The problem is IMAQ Draw requires SGL color value and the color controls of front panel give U32. I have tried conversion VI's which hasn't worked. HELP !!!
0 Kudos
Message 1 of 4
(3,262 Views)
Jake,

I think the color control can be wired directly to the input, but I am not positive. I don't know of any color conversions that would help.

Make sure your image is a color image. You can't draw colors on a grayscale image.

You might want to consider using overlays, which appear on top of the image but are not part of the image.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 4
(3,262 Views)
Connecting it directly to IMAQ Draw does not work. Neither does convering it explicitly using one of conversion VI's.
0 Kudos
Message 3 of 4
(3,262 Views)
Jake,

So what does it do when you connect it directly? Do you get strange colors, or is it a shade of gray, or what? It must do something different when you change your color selection.

If you give me more details I might be able to help more.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 4
(3,262 Views)