Hello,
I'm new to the LabWindows development environment, so I thought I'd ask for help here.
I inherited some code from a previous lab. The code is suppose to snap from a CCD camera and display it on a canvas. However, once run, the program displays some funky horizontal lines onto the screen.
By adding the imaqDisplayImage call, I can see that the CCD image is fine, which make me think it is the imaqImageToArray call which has some kind of problem with it.
I'm wondering if anyone has ever seen something like that, where instead of the captured image, you get a bunch of lines.
<--snip-->
imaqDisplayImage (liveImage, 0, 1); //works fine
liveChar = (unsigned char*)imaqImageToArray (liveImage, IMAQ_NO_RECT, NULL, NULL);
NewBitmap (IMAGE_X, 8, IMAGE_X, IMAGE_Y, paletteGrey, liveChar, 0, &liveBit);
CanvasDrawBitmap (panelCollect, PANEL_COLL_CANVAS_LIVE, liveBit, VAL_ENTIRE_OBJECT, MakeRect(0,0,480,640));
<--snip-->
I've attached the output image.
thanks
Lorne