LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN, XNET CAN, DBC File

Hello All, 

 

I am trying to read CAN data from the USB CAN. I am trying to create a dbc file and with the help of that dbc file I am trying to read the CAN data from the hardware. I need to know how to add/create some important parameters during the creation of dbc file. The following are the parameters,

 

Scaling Factor, Scaling Offset, Min Value, Max value, Start Bit, Num Bits.

 

Also, how to convert the boolean datatype from CAN Data.

 

Expecting the favorable reply,

 

Thanks,

Karthik

0 Kudos
Message 1 of 2
(921 Views)

Hi Karthik,

 


@Karthik_Sekar wrote:

I need to know how to add/create some important parameters during the creation of dbc file. The following are the parameters,

 

Scaling Factor, Scaling Offset, Min Value, Max value, Start Bit, Num Bits.


To edit/create a DBC file I recommend to use the CANdb++ from Vector. You can get it for free…

Once you installed that tool it is very easy to define signals (with all the items you mentioned), messages, nodes, ArbIDs, whatever else you need in your CAN protocol!

 


@Karthik_Sekar wrote:

Also, how to convert the boolean datatype from CAN Data.


How do you define the "boolean datatype" signal?

I guess you will get an integer (with value 0 or 1) with most CAN driver implementations. It's just a guess because you don't supply any information on your hardware or drivers…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(884 Views)