Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

VBAI and vbaiGetInspectionImage

Solved!
Go to solution

Hello Brad

on calling

 

            rw = vbaiGetInspectionImage(Cam.Session, NULL, 1, 1, Cam.imPicture, &Flag);

I get a error code -354713. Do you have any idea why this is coming?

 

best regards

Oliver

0 Kudos
Message 11 of 13
(1,619 Views)

Hello Brad

I got it, my mistake

 

calling

 

                    //
                    rw = vbaiGetInspectionImage(Cam.Session, NULL, 1, 1, Cam.imPicture, &Flag);

always gave back a NULL on the Flag, I didn't realize that I forgot to define the imPicture.

 

By adding:

 

// Create an image
Cam.imPicture = imaqCreateImage(IMAQ_IMAGE_U8, 0);

I got back a picture !!! 🙂

 

OK, I can confirm that it is possible to get a picture from a real time server with the same cmds.

 

thanks a lot for your help

 

greetings

Oliver

 

0 Kudos
Message 12 of 13
(1,618 Views)
Great. Glad to hear you figured it out.
0 Kudos
Message 13 of 13
(1,615 Views)