05-03-2016 02:04 PM
I'm interested in writing an app that pulls in CAN information using LabVIEW 2010 and dbc files. I know a fair amount about CAN itself, but almost nothing about dbc files. I wondered if someone could point me to where I might find the following...
1. A book or other detailed tutorial on how dbc files are formatted and used, starting from the beginning.
2. Sample dbc files that I can use to debug code.
I think that would be a good place to start.
Thanks.
05-04-2016 02:11 PM - edited 05-04-2016 02:12 PM
Both the NI-CAN and NI-XNet APIs have functions for reading a DBC, getting frames, signals, scaling information, etc. There are several shipped examples by going to Help >> Find Examples after you have either of those free APIs installed. I wouldn't recommend parsing the file manually, far too error prone when other tools have done it for you.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-05-2016 06:55 AM
I knew those existed, but I'm not sure how to use them. Granted, I haven't tried, because I don't have any dbc files that I can use. Hence, my second question. Where can I get some sample files to use to help build the app?
Thanks.
05-05-2016 08:17 AM
A few DBC files are shipped with NI-CAN and NI-XNet demos, so that there is something to show the demo is working. Search your Examples folder for *.dbc after installing these and you'll find a couple.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-05-2016 08:52 AM
Ok, I'll do that. Thanks.