How to Recover from the Bus off State in NI-Embedded Can for RIO

Updated Jul 25, 2018

Reported In

Hardware

  • sbRIO-9636

Software

  • LabVIEW 2017 Professional

Driver

  • NI-Embedded CAN for sbRIO
  • NI-Embedded CAN for RIO

Issue Details

How can I recover the CAN bus if it transitions into the Buss Of state? 
 

Solution

Recovering from the Bus Off state can be done by calling the following VIs in the following order: 

1. Can Close Interface VI
2. Can Create Interface VI (with the right settings so you do not end up in the Bus Off State again) 
3. Can Start VI
  
Make sure to properly clear and handle errors. You should not have to reboot or power cycle. 

Additional Information

Note that the driver changed name from "NI-Embedded CAN for sbRIO" to "NI-Embedded CAN for RIO" in release 14.0.

WAS THIS ARTICLE HELPFUL?

Not Helpful