LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

embed image in one page tab control

I am acquiring video images and I want to display them on one page of the tab control. If I use the make child.vi this puts it on all the pages.
0 Kudos
Message 1 of 5
(3,126 Views)
Could you explain this in more detail? Normally if the image or movie is not displayed inside an ActiveX control, it should be displayed on the page where the indicator located.

Is the video image actually inside a page of the control, or is it actually on top of the tab control? Select the video image control, move it to the outside of the tab control (do not use mouse, use direction keys on the keyboard), if the control can go outside of the tab control, then it is above the tab control instead of inside it. In this case, just use the mouse to select the control and drag it to the inside of one page.

Joe
0 Kudos
Message 2 of 5
(3,126 Views)
well I am not using an image ctrl to display the image. I am using Imaq Winddraw vi. I used this to embed the image in the tab control using IMAQ Makechild.vi provided by NI. However this makes it displayed on all the pages of the tab control. If I want to use one of the pages of the tab control to display the image how can I do it?Also I cannot find any examples to use the new Image control to display images on the front panel. Can I have some example for that?

Thanks!
Hema
0 Kudos
Message 3 of 5
(3,126 Views)
I am not quite understanding of "embedding" the image since I am not familiar with IMAQ. However, I believe it is a control or indicator, right? You can pop this control on your front panel, move it to the inside of the tab page (you will see the solid page border becomes dashed lines). If you click on a different tab, this control should disappear. Sometimes, when you click the tab, the control remains visible, in this case, you need hide the control when the desired tab page is not selected, and show it when it is displayed. This happens with some ActiveX controls.

If, however, the image you try to display is not a control, instead it is separate VI, then you can try to use a subpanel in the tab page, and link the vi to the subpanel. Su
bpanel is only available in LV 7.

In either method, show the image only when the corresponding page is selected, and hide it otherwise should always work.

Joe
0 Kudos
Message 4 of 5
(3,126 Views)
"make child.vi" probably makes a child window for display images. A child window always on top of its parent window. It's not a control/indicator. So it'll show up no matter what page you choose.

To make a window disappear, you've to close it or hide it.
If you haven't download lvwutil32.zip from NI site yet, maybe it's time to do that.

George Zou
http://gtoolbox.yeah.net
George Zou
0 Kudos
Message 5 of 5
(3,126 Views)