Discussion:
CAN API errors
(too old to reply)
Anoop vishnu
2007-05-14 13:40:11 UTC
Permalink
Hi All
 
Here again with some errors
 
I have a huge application which deals with both channel and frame APIs. My application periodically transmit more than 35 messages to the unit which is under test. But when i start the execution of my application some errors are rising (Not always) and it may be fine when i reexecute the application again. So please help me to make my code error free !! Please find attached error snapshots
 
error_CAN_1 :- Solution given are 1. Close all other application when i run my application 2. Increase the read que length
 
I have done both. I Increased read que length to 100
 
error_CAN_2 :- Same like error_CAN_1. But no idea why its still persist
 
error_CAN_2 :- Again i didnt get any solution for this error as well
 
Thanks in advance


CAN error_3.JPG:
http://forums.ni.com/attachments/ni/30/2583/1/CAN error_3.JPG


CAN error_1.JPG:
http://forums.ni.com/attachments/ni/30/2583/2/CAN error_1.JPG


CAN error_2.JPG:
http://forums.ni.com/attachments/ni/30/2583/3/CAN error_2.JPG
Nikhil A
2007-05-15 20:10:07 UTC
Permalink
Hello Anoop, For the error -1074388956 when using CAN, this Code means the Board handle is invalid. This
could happen if you use not a valid handle because of race conditions
within variables or close functions within the code.For error -1074388952, you need to specify a read queue length. The error indicates that you got to read frames faster.Error-1074388699, This error message means, you are in trouble
because your code is not able to read all incomming frames fast enough.
This leads to a internal read queue overflow and the error occurs. You
can try the following: Use the current driver 2.3.2, make the read
queue larger and set the frames to read input to 1000, this forces the
Read Mult function to read all frames available. If you are using a 2
Port device, try to use only one Port for read mult, because the
onboard processor has to serve both ports, this gives him more time. If
you are using a Series 1 board, try to use a Series 2 Board, if
available. The Series 2 Board uses a larger internal queue for
buffering. This may help you.RegardsNikhil A.

Loading...