Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

VisualC++ 6.0 and NiCAN problem.

I have developed an application with VisualC++ which was working with the NiCAN 1.5. library.
But Cause I am working under Windows2000, my PCMCIA NiCAN card was not always recognised. I was told to install the version 1.5.1 of NiCAN. Which I did.
Now, my card is recognized (Ni configuration and diagnostics) but it is not any more recognized by my application with the new library.

The init of my card is :
BaseOdjName = "CAN0"
Status = ncReset(BaseObjName, 0);
Status = ncConfig(BaseObjName, 6, CANNetAttrIdList, CANNetAttrValueList);
Status += ncOpenObject(BaseObjName, &GlobalTXRXObjh);

the reset and config seems ok (return: 0), but the OpenObject return me : 0xbff6202d ?

Is somebody can help me ?

Thanks a l
ot.
Benoit.
0 Kudos
Message 1 of 2
(4,073 Views)
Hello-

According to errors.txt, the 0xBFF6202D status code means CanErrRsrcLimitQueues. This is an error stating that size of the queues is beyond the limits. This error can be further explained by a knowledge base: "How Large Can I Make the Read and Write Queues for NI-CAN?" Try doing a search on ni.com for +CAN +objects to find this article.

Randy Solomonson
Application Engineer
National Instruments
Message 2 of 2
(4,073 Views)