Showing results for 
Search instead for 
Did you mean: 

Write CAN dbc for .xml with LabVIEW

Go to solution

I need to create a CAN database with about 100 signals. I don't want to manually do this since I will make a ton of mistakes so I'd like to do this programmatically. I suspect this is not possible since I see no hits for this when I search the forums and the web.

0 Kudos
Message 1 of 3
Accepted by topic author labviewman

You can absolutely do this programatically.  Go to the Example Finder (Help >> Find Examples)  And check out the CAN Dynamic Database Creation VI.  It will create a cluster, frame, and signal.  It then uses this database to write to it, but you could instead put in the XNet Database Save (which saves it as the XML that XNet likes), or the XNet Database Export (which can export it to a DBC).  This is all found in the Database palette under XNet.

0 Kudos
Message 2 of 3

Excellent!  Thanks Hooovahh!!!

0 Kudos
Message 3 of 3