I am receiving a stream of data via CAN using fast CAN. After a large number
of
frames are received I receive this message
NON-FATAL RUN-TIME ERROR
"Prueba 1.c", line 188, col 18, thread id 0x000031D4
Function ncReadMult: (return value == -1074388952 [0xbff62028]).
Error 0xbff62028 (CanErrOverflowRead); Read queue overflow. Solutions:
Use Read
Mult notification and function to read multiple frames at a time;
Increase the
length of the read queue; To receive recent data only, set read queue
length to
zero.
The basis for my program is hte NI example that uses
Status = ncCreateNotification(NetIntfObjh, NC_ST_READ_MULT,
TIME_EACH_CALLBACK,
&Queue, AnalyzerCallback);
So I though I was handling read multiple frames
. Ihave increased my queue
lenght to 20000.
How do I set read queue lenght to 0 to receive only recent data?
Thanks
LV