LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

imaqSetupSequence skipCount error

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

dwight.bartholomew@l-3com.com

0 Kudos
Message 1 of 6
(4,246 Views)

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, 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 2 of 6
(4,226 Views)

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, 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 3 of 6
(4,224 Views)
Can you post the car# for our reference?
0 Kudos
Message 4 of 6
(4,193 Views)
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.
Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 5 of 6
(4,178 Views)

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.

0 Kudos
Message 6 of 6
(4,160 Views)