NI Home > Community > NI Discussion Forums
Reply
Member
saikumar
Posts: 1
0 Kudos

How to parse the .dbc file

Hi,

 

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 ,

 

saikumar

 

 

Active Participant
O_Proulx
Posts: 306
0 Kudos

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:

 

 

 

GetTxRx.PNG

 

Let me know if that helps.

O. Proulx
National Instruments
www.ni.com/support
Member
Bill_in_Detroit
Posts: 75
0 Kudos

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.  http://www.vector.com/vi_downloadcenter_en,,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