01-18-2010 06:39 AM
Hi.
I integrated the ring acquisition into my program. I made and initialized all the variables as in the NI ring example, but something is wrong.
Image *currentImage; // global
int imageToExtract; // global
int imageExtracted=0; // local
Sid ok,
currentImage = imaqExtractFromRing (Sid, f.imageToExtract, &imageExtracted);
At this line the program cracks with the Fatal error:
Function imaqExtractFromRing (errorCode = -1074396120 [0xbff60428]). Not an image
01-18-2010 06:55 AM
01-18-2010 07:58 AM
status = imaqSetupRing (Sid, images, bufferCount, skipCount, IMAQ_NO_RECT);
[int imaqSetupRing (SESSION_ID sessionID, Image** images, int numImages, int skipCount, Rect rect); ]
unsigned short int bufferCount; //global
Image *images[NUM_RING_BUFFERS]; //global <- this one
01-18-2010 10:07 AM
01-20-2010 05:03 AM
01-20-2010 05:54 AM