NI recommends users to set baud rate value using database.
- Launch NI-XNET Database Editor.
- Open the database file. Select the CAN Cluster you wish to modify.
- Under CAN Cluster Properties, select <Custom> from Baud Rate drop down menu.
- Configure the custom baud rate.
To configure custom baud rate of a CAN interface programmatically, write the hexadecimal value from the custom baud rate dialog to
Interface:64bit Baud Rate or
Interface:CAN:64bit FD Baud Rate property.
- Place a property node on your block diagram by going to the Measurement I/O palette >> XNET >> Session Node. Once you have dropped down the node on the block diagram, click the section under XNET Session and navigate to Interface >> 64bit Baud Rate. Navigate to Interface >> CAN >> 64bit FD Baud Rate for CAN FD.
- Copy the hexadecimal value from the custom baud rate dialog to the constant or the control and wire the value to the property node.
- Format the input value into hexadecimal representation if necessary. Right click the constant or the control and choose Display Format... then select Hexadecimal.
Additional Information
You can use the
NI-XNET Compatibility Library for NI-CAN to allow your NI-XNET device to appear in Measurement & Automation Explorer as both an NI-XNET and NI-CAN device as shown below: