How Do I Change the Baud Rate of NI 9852 or NI 9853 CAN Modules?

Updated Oct 28, 2020



  • NI-9853
  • NI-9852


  • LabVIEW


  • NI-CAN

I need to change the baud rate of a port on my NI 9852 or 9853 CompactRIO CAN module from the default of 500 Kbps. How do I do this?

The baud rate of a NI 985x module can be set either in the Project Explorer or programmatically.

To set the baud rate for a NI 985x module from the project explorer:
  1. Right-click on the module in the Project Explorer window and select Properties. This will open the C Series Module Properties dialog box for the NI 985x module.
  2. Select the CAN0 or CAN1 tab and select the desired baud rate from the Baud Rate drop-down menu.
  3. Click OK.

To change the baud rate programmatically:

Use a Bit timing FPGA I/O Property Node for the specified CAN port . To use this property, CAN communication must be stopped for the port, otherwise the property node will return an error.  An example implementation is shown:

The input to the Bit Timing property must be the hexadecimal values of both Bit Timing Registers, BTR1 and BTR0. These values must be concatenated together with BTR1 as the most significant value and BTR0 as the least significant.

To determine the BTR values for a standard baud rate select the desired rate in the C Series Module Properties as specified above in Part A. The BTR values for the selected rate can then be viewed in the CAN interface Advanced… Options.