Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

imaqDisplayImage

can someone please tell me how to display an Image that is unsigned char when the function

imaqDisplayImage( Buffer, 0, TRUE);

gives me the error Type error in argument 1 to imaqDisplayImage found pointer to unsigned char expected pointer to const Image

So how do I use this function can I convert my unsigned char image to const Image?

thanks,
JS

0 Kudos
Message 1 of 4
(4,019 Views)
Hi

you called
   imaqDisplayImage( Buffer, 0, TRUE);
but the arg 1 is of type cwImaqImage and not unsigned byte pointer!

i displayed a image buffer with calling
  imaq1394plotDC(HandleToCanvas, buffer, 0,0,width,height,0,0,0)

or u use the cwImaqViewer
and attach a cwImaqImage to.

hope this helps
0 Kudos
Message 2 of 4
(4,009 Views)
Sorry to bombard you with such easy questions but is that 1394 lmaq library part of the IMAQ or VISION or what because I can't seem to find those libraries and I have the VISION and IMAQ.

thanks,
JS

0 Kudos
Message 3 of 4
(3,996 Views)

JS,

    The IMAQ 1394 driver is included with a driver set called Vision Acquisition Software.  It is also possible, though, to get the drivers individually.  It sounds like you have NI-IMAQ but not NI-IMAQ 1394.  The 1394 driver is not a free driver, but you can download the driver set and try it for 30 days.  Let me know if you have more questions!

-Allison S.
Calibration Services
Product Support Engineer
0 Kudos
Message 4 of 4
(3,990 Views)