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 ,
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.
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.ht
I have pasted an image to show you what to select:
I hope this helps.
I'm looking to parse a DBC file, like you've illustrated. However, I'm not finding the XNET Database Open.vi in Labview 2015. Could you update the implementation for changes made in the XNET library since this original post?
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.