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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XNET CAN DBC read issue

Solved!
Go to solution

Hello,

 

just trying to read CAN DBC database file with XNET.

Everything seams to work fine, except one thing.

Start bit is not reed correctly.

According BDC file, for signal for example CheckSum, start bit should be 7.

 

milan87_2-1648812393642.png

Instead of 7, start bit for this signal is 0.

milan87_3-1648812500289.png

 

All other values for this signal are ok.

Also other signals have same error.

 

Not sure what is happening. Can someone advise?

 

Unfortunatelly i can't froward BDC file.

 

Thanks.

 

 

 

Download All
0 Kudos
Message 1 of 3
(1,093 Views)
Solution
Accepted by topic author milan87

Hi milan,

 

this looks like the Intel vs. Motorola notation convention for CAN DBC files!

In your DBC file you see the last bit of the signal, while the XNet image shows the start bit of the signal…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(1,089 Views)

Also I'd recommend viewing your database in the XNet Database Editor.  It should be in your start menu if you installed XNet.  From there you can look at the frame in a database, and the signals in it.  This tool isn't as good at editing some aspects of a DBC as other tools.  But it does have a great visualization of the bit packing within a frame and can clearly show you where the signal's bits are.  Here is a blog post talking about the signal API and shows the Database Editor.

0 Kudos
Message 3 of 3
(1,009 Views)