Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I embed an aquired image in the front panel or does it have to be in its own window?

I need to be repeatedly displaying processed images and I know that I can make the image window "float" so that it is always on top and never becomes hidden when I click in the vi's front panel, but it is inconvenient that if I move the vi window or scroll within it, the image window stays where it is. I would like the image display to be a part of the front panel if that is possible, so that both move together.

Thanks
0 Kudos
Message 1 of 3
(3,138 Views)
This is fairly simple to do.

I have attached Make IMAQ Child.vi, which is a slightly modified version of one I originally found on the NI website.

One required input is the filename of the parent VI, which can easily be obtained by using the "Current VI's Path" constant and Strip Path to remove the filename from the path.

The other required input is the IMAQ window number.

This will make the IMAQ window a child panel within the specified parent window. It will move with the parent window.

Bruce
Bruce Ammons
Ammons Engineering
Message 2 of 3
(3,138 Views)
The method outlined by Bruce Ammons is usually the best, however there are a few other options: the LabVIEW Intensity Graph and LabVIEW Picture Control. There are several example programs that ship with NI-IMAQ that explain how to display to these two front panel objects (both require the image to be translated into a 2D array).

If you require full frame rates (30 fps) then I would use the Child Panels. However, if you don't require to display at full frame rates, the Intensity Graph and Picture Control are easier to use.

The choice is yours.

Kyle V
Applications Engineer
Nationanl Instruments
www.ni.com/ask
Message 3 of 3
(3,138 Views)