Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display Image grabbed by IMAQdx in CWIMAQViewer in VC++ 6.0?

Solved!
Go to solution

Hello,

 

I use VC++ 6.0 and NIIMAQdx (Vision Acquisition 8.5) to acquire image from my Prosilica GE1380 GigE camera.  The definition of the image being grabbed is

 

Image *grabImg;

 

Afterwards, I want to display it in a CWIMAQViewer control. However, since my grabImg isn't of the CWIMAQImage type, I got errors doing that.

 

Anyone knows how I can do it? If you have any idea, please help me. I have spent several days on this issue...

 

Thank you!

 

AY

0 Kudos
Message 1 of 2
(6,394 Views)
Solution
Accepted by topic author Antonio Yu
Hi, for that image type you should call the imaqDisplayImage (which actually will create a new window). Alternatively, you can convert the image to a CWIMAQImage type (such as with the ArrayToImage method of the CWIMAQImage class. Check out the shipping documentation in C:\Program Files\National Instruments\Vision\Documentation and C:\Program Files\National Instruments\NI-IMAQdx\Docs.
Jeff | LabVIEW Software Engineer
0 Kudos
Message 2 of 2
(6,380 Views)