Automotive and Embedded Networks

Showing results for 
Search instead for 
Did you mean: 

How to parse the .dbc file

How to parse the .dbc file



How to parse the DBC CAN file and extract Tx and Rx messages  with Signal Names with respect to the particular Node and output it

to a file and ignoring all the other lines. We are not using NI-CAN. Please suggest me the solution.


Thanks in advance ,





0 Kudos
Message 1 of 5

Re: How to parse the .dbc file

Hello Saikumar,


The DBC file format is a proprietary file format, so I'm not sure how to extract this information.   You can open a DBC file with a text editor and find your node's name and possibly find how to extract the messages that are associated with it.


You could also use the NI-XNET API to parse the file for you.  NI-XNET is a free driver for NI-XNET hardware, but it can also be used to parse DBC and Fibex files.  You can use the C, CVI or LabVIEW API.  Here is an example of what you want to do in LabVIEW:






Let me know if that helps.

O. Proulx
National Instruments
Message 2 of 5

Re: How to parse the .dbc file

Saikumar:  You can download the Vector CANoe demo and then use the dbc++ editor to extract Tx or Rx information you want.  Here is a link to the site.  You will need to add some information but the download is free.,,223.html?markierung=CANoe%257Cdemo

I have pasted an image to show you what to select:

I hope this helps.


vector canoe download page.png

0 Kudos
Message 3 of 5

Re: How to parse the .dbc file

O. Proulx,


I'm looking to parse a DBC file, like you've illustrated.  However, I'm not finding the XNET Database in Labview 2015.  Could you update the implementation for changes made in the XNET library since this original post?


Thank you,

M. Zolot

0 Kudos
Message 4 of 5

Re: How to parse the .dbc file

Nothing significant has changed in XNET since this post, well in regards to opening a database.  I'm in 2015 and when I open the attached VI it opens without error.  I think the VI you are having a hard time finding is the Database Add Alias VI which is under the Database >> File Management subpalette.

Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
Interesting in learning all you can about automotive CAN bus communicatin? Checkout my 9 part CAN Blog series.

0 Kudos
Message 5 of 5