Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

In every window I get the same image when I use multiple imaq winddraw VI's

I want to display more than 1 image, but when I use multiple IMAQ WindDraw VI's, in all windows the same image is shown (namely the last image in the process). According to the help function it should be possible to show 16 windows.
0 Kudos
Message 1 of 3
(3,115 Views)
I found out why I got the same image in all of the imagewindows. I thought I could manage with just one IMAQ Create VI but I discovered that you need an IMAQ Create VI for every image you want to display.
0 Kudos
Message 2 of 3
(3,115 Views)
Each call to IMAQ Create makes a new buffer or storage location in memory for an image. Noitce that most of the IMAQ Vision processing functions have an input called Image Dst. If Image Dst is wired, then the processing results will be stored in the new buffer you have created with IMAQ Create. If Image Dst is not wired then the results are stored in the buffer used by Image Src, overwriting the original contents. When we pass an image to the Windraw, we are really just passing a reference to the image's location in memory. If you perform multiple operations on one image without creating new image buffers, then the results of intermediate steps will be lost.

Regards,

Brent R.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(3,115 Views)