LabWindows/CVI

取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 6 条)
4,378 次查看

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 项奖励
2 条消息(共 6 条)
4,358 次查看

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 项奖励
3 条消息(共 6 条)
4,356 次查看
Can you post the car# for our reference?
0 项奖励
4 条消息(共 6 条)
4,325 次查看
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 项奖励
5 条消息(共 6 条)
4,310 次查看

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 项奖励
6 条消息(共 6 条)
4,292 次查看