From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How should I clear a CANbus (NI-9853) error code?

Solved!
Go to solution

I am successfully using both ports of a NI-9853 on the cRIO 9104 backplane, unit one port is disconnected.  The disconnected port gives me the error 65538 (Op failed) while the still functionally connected port generates the error 65539 (Input missed 1 or more data points).  I can detect the disconnect using these error codes but I'm not sure what are the best steps to:

 1) Continue to use the connected port

while

 2) Polling the disconnected port to see when it is reconnected

Adrian Neal
NI Associate Developer
Embedded Real Time
0 Kudos
Message 1 of 4
(4,643 Views)
Solution
Accepted by topic author Confused CANr

It sounds like you have the IO nodes of each port in the same FPGA loop.

 

If one IO node is failing, it is going to have at least a 4 second timeout before it fails, and the default timeout is 14 seconds (configured in properties). There are two timeouts involved: One is the output timeout, configured by the user in the 'Advanced' dialog box of the module properties dialog, and another is a fixed 4 second timeout in LV-FPGA waiting for a response from the CAN module.

 

If the nodes are in the same loop, the disconnected port will block the loop over and over causing the still connected port to sample at a crawl. Try moving them to their own loops.

Message Edited by Stephen B on 03-16-2009 10:50 AM
Stephen B
Message 2 of 4
(4,633 Views)

Thanks Stephen...

 

I did have them in the same loop so I'm trying to make it fit once I split the 2 handlers... Only had 1 slice to work with 😞

I'll let you know as soon as I can test a fitted FPGA.

Adrian Neal
NI Associate Developer
Embedded Real Time
0 Kudos
Message 3 of 4
(4,618 Views)

Thanks Stephen...

 

Yes splitting the channel read/write into seperate loops seems to have resolved the problem.

 

Adrian Neal
NI Associate Developer
Embedded Real Time
0 Kudos
Message 4 of 4
(4,616 Views)