Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide the taskbar of image window and adhibit it on the panel like other controls created in the .uir file?

I wirte a program which used the image window to display images.
I want the image window adhibit on the located position on the panel, but I find that there is taskbar of the image window, I want remove it and let the image window can be minimize with the panel, How to realize it?
Dongsheng Zhao
North China Electronic Power Univ.
zds_hd@yahoo.com.cn
0 Kudos
Message 1 of 6
(3,604 Views)
Dongsheng,

From the message subject, it looks like you are programming in CVI. Is that the case? If so, there are several examples of how to acquire and display images into objects that are embedded on the user interface. On your computer, try navigating to:

C:\Program Files\National Instruments\CVI71\samples\IMAQ\Display

Take a look at the examples located there, especially Snap ImgPlot and Snap Canvas. Those examples both show embedded image display windows.

Regards,
Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments
0 Kudos
Message 2 of 6
(3,594 Views)
Scott R
Thank your advice.
But you may not understand my meaning.I programing with labwindows/CVI and Imaq vision ,my Image caputre board is not the ni product.
I want to use the Imaq Vision function on the image window, and I met the problems mentioned before.
Dongsheng Zhao
North China Electronic Power Univ.
zds_hd@yahoo.com.cn
0 Kudos
Message 3 of 6
(3,589 Views)
Dongsheng,

What method are you using to display images? Are you using a graph or a canvas? Please be more specific in describing how you are displaying images to the user interface of your CVI program. What function are you calling? What parameters do you use for that function?

If you are not using an NI board, how are you getting your image data into CVI? Are you using Vision functions to display the image or are you using software that is specific to your board?

Please give me more specific information about how you are planning to display the image.

Regards,
Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments
0 Kudos
Message 4 of 6
(3,568 Views)
What method are you using to display images?
(I display image in the image window using the imaq vision.)

Are you using a graph or a canvas?
(So, I dont use a graph or a canvas.)

Please be more specific in describing how you are displaying images to the user interface of your CVI program.
(Firstly I made a decoration control and I want to place the image window in it.Then I get the location of the decoration and move the window there. I want to use the image window because I can use many function (in the imaq vision). The problem is that When I finish this, and run the program, I found there is the taskbars of the program and the image window, and CLICK the imagewindow taskbar, the image window minimized, and there is three panels in my program, the image belong to one panel. I want it display when i call the panel and hide when i hide the panel, I use the function imaqSetupWindow (VISION_WINDOW, 😎 to let it display on top, but another problem come out, when I open other software(such as Internet Explorer) and let the program keep running, the image window still on the top, that is boring.)

If you are not using an NI board, how are you getting your image data into CVI? Are you using Vision functions to display the image or are you using software that is specific to your board?
( I use other image borard getting the images, I make the image board save the image and then read image using imaq vison function.)

I do not know whetehr the upper description is specific and do you understand my meaning, I am sorry for my poor english?
Thanks again.
Dongsheng Zhao
North China Electronic Power Univ.
zds_hd@yahoo.com.cn
0 Kudos
Message 5 of 6
(3,567 Views)
Dongsheng,

The best method to use here would be a combination of the "Load and Display" example and the "snap imgPlot" function. From the snap imgPlot code, we want to use the GetPanelAttribute (panelHandle, ATTR_SYSTEM_WINDOW_HANDLE, &CVIWndHndl) function to obtain the window handle of the main interface and assign that handle to CVIWndHndl. This handle is assigned by Windows and it uniquely identifies the specific window that has the Canvas control and user controls on it. We can then use this window handle in the imgPlot function as imgPlot (CVIWndHndl, ImaqBuffer, 0, 0, acqWinWidth, acqWinHeight, CanvasLeft, CanvasTop, plotFlag).

This will place the newly acquired image onto the user interface instead of into a separate window. In the case of that example, it places the image on top of a canvas control. In your case, you can use the top and left values for the decoration that you have placed.

Try this and let me know if you have any additional questions on this issue.

Regards,
Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments
0 Kudos
Message 6 of 6
(3,560 Views)