Example Code

merge multiple CAN DBs using NI-XNET

Code and Documents

Attachment

Download All

Hi,

I created a small example how to merge multiple CAN DBs (.dbc, .ncd or .xml) into 1 XNET DB (FIBEX xml) containing only 1 CAN cluster. This is needed if you want to use multiple CAN clusters on the same physical interface using NI-XNET 1.0. Example is for LabVIEW 2009.

Right now the code onyl works if there are no duplicate frame/signal names. Mode dependend messages are not supported either. Feel free to customize it for your needs.

Andreas

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Blessing_Star
Member
Member
on

Would you be able to convert from LabVIEW 2009 to LabVIEW 8.5.1? Appreciate your help.

Thanks

Jim_Sankovich
Member
Member
on

Can you add multiplexed signal(s) support.

Jim.x
Member
Member
on

Hi all,

I'm trying to use this code but when I open the "XNET merge dbc files.vi" from the LLB, during load LabView (I'm using LV 2013) ask me to select the "XNET String To IO Name (Database Filepath).vi" (...and if I skip this step, many other similar requests appear).

I've installed X-NET 1.8... why LabView cannot find trhe requested VIs? Where I can find these VIs? I need to install some other module?

Please could you help me?

Thank you in advance

P.S.:

Exactly the same happens using files contained into the XNET merge dbc files 85 with LB 8.5.

Jim_Sankovich
Member
Member
on

Should have been installed when XNET was installed. See screen shot for location. Located in xnet.llb. Path maybe different if you’re using Labview 2013.

Regards

Jim Sankovich

Contributors