12-22-2009 01:31 PM
Using an example from these Forums, I wrote a quick frame grabbing GUI for my 1427 frame grabber card. Basically, I looked like this
Nframes = 32;
Nskip = 0;
// Open an interface and a session
imgInterfaceOpen ("img0", &Iid);
imgSessionOpen (Iid, &Sid);
// Prepare image memory
images = (Image **) malloc(Nframes * sizeof(Image *));
for(i=0; i<Nframes; i++)
{
images[i] = imaqCreateImage( IMAQ_IMAGE_I16, 0);
}
imageArraySize = Nframes;
// Start up and acquire the frames
imaqSetupSequence( Sid, images, Nframes, Nskip, IMAQ_NO_RECT);
imaqStartAcquisition(Sid);
do
{
imgSessionStatus(Sid, &acqInProgess, &bufNum);
}
while(acqInProgess);
// Free up memory
for(i=0; i<Nframes; i++)
imaqDispose(images[i]);
free(images);
// Close the interface and a session
imgClose(Sid, TRUE);
imgClose(Iid, TRUE);
Everything worked great until I changed Nskip to something other than zero. Now I get a fatal runtime error
FATAL RUN-TIME ERROR: "hlGrab.c", line 166, col 13, thread id 0x00001304:
Function : (errorCode = -1074396900 [0xbff6011c]). The requested skip count value is out of range.
anytime Nskip is 1 or more.
What's going on?
Dwib
please email a response as well as posting to this Forum
12-23-2009
10:57 AM
- last edited on
08-04-2025
10:27 AM
by
Content Cleaner
Hi Dwib,
Looking into the function reference and documentation, it denotes that the frame skip is not applicable to linescan cameras, and is not supported on the 1427:
Note: skipCount is not supported for line scan acquisitions. Refer to imgSessionLineTrigSource2 for information about triggering line scan skip triggers.
Note skipCount is not supported on the NI 1427, NI 1429, or NI 1430.
The IMAQ Function Reference installs by default here: C:\Program Files\National Instruments\NI-IMAQ\Docs
If you would like to start an email service request, you can do so by going to ni.com/support
Cheers,
12-23-2009 11:03 AM
Hi Dwib,
I just realized that you posted this on a CVI forum, and therefore you are probably using CVI and not another text based program. This note is not in the CVI Help, but in the IMAQ reference help itself. I went ahead and filed a corrective action request to get this in future manuals of CVI.
Cheers,
12-28-2009 06:26 AM
12-29-2009 08:23 AM
12-29-2009 10:23 PM
The Chancenator wrote:
Sure, the CAR ID is 200546. You can check in future releases of CVI (in the readme file) to see if this has been fixed.
Thank.