LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW XNET Programmatically Change Frame ID from DBC

I am hoping there is a way to programmatically change a frames ID in LabVIEW. I have an application that contains multiple of the same device on a CAN network, each with a unique ID. Each device then transmits its CAN messages with an offset in the arbitration IDs based on it's device ID. I would like to use a common DBC for all of them and be able to programmatically adjust all of the frame IDs based on the devices ID. That way I could change the ID in my LabVIEW program, and it would start reading data from the new device. It would also be nice to not have these changes saved to the DBC.

 

I was playing around with the database pallet in the XNET pallet, but was not able to figure out how to accomplish this. Does anyone have experience with this?

0 Kudos
Message 1 of 4
(2,147 Views)

Looking for the same thing.  I have to make a separate dbc file for each item.  There must be a solution for this out there?

John

0 Kudos
Message 2 of 4
(1,167 Views)

mattb1_0-1660224033326.png

This is how I went about it. As long as you don't close the reference to the DBC, the arb IDs will remain offset.

 

0 Kudos
Message 3 of 4
(1,162 Views)

Thanks

0 Kudos
Message 4 of 4
(1,119 Views)