LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

X-NET CAN message direction

Dear

 

According to the example given by NI I have created a tree that Displays all the Content of a .dbc file.

I works great but I cant find out whether a message is a send or receive message.

Does any one of you ever tried to find that out or know how to find that out?

Please have a look into the attached example for more Information.

 

Best regrds

 

Martin

0 Kudos
Message 1 of 7
(2,893 Views)

CAN message are usually message that are send in a regular interval.

You might have to read continuously the CAN bus to retrieve any message.

0 Kudos
Message 2 of 7
(2,886 Views)

Beg me pardon but I don't takl about CAN message Transfer.

I'm talking about the .dbc file anaysis.

Within the .dbc file each message Can be identified as send or receive message.

What is missing is a indicator or property for this inforamtion.

0 Kudos
Message 3 of 7
(2,882 Views)

Hi Martin,

 

Does any one of you ever tried to find that out or know how to find that out?

The Tx/Rx information is coded in the dbc file by assigning a message to a certain device/network node ("Netzknoten" in my German CANdb++ tool).

Unfortunately I could not find a way to read that information from XNet (but I don't have much experience with XNet).

You may just read the dbc file as it's a simple text file and parse the lines starting with "BO_" to read their device assignment. Each "BO_" line (BO = "Botschaft" (German) = "message") contains ArbID, message label, payload byte count, assigned network node.

Best regards,
GerdW


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

Gerd

 

thats exactly what I need.

I have written a .dbc file reader but this information seams to be not available.

The example is available at www.digiinst.de

Did you hear something new about this issue?

 

Regards

 

Martin

0 Kudos
Message 5 of 7
(2,813 Views)

Hi Martin,

 

no, in the last month I did not hear anything new. (I also didn't ask for news.)

For my use case (cRIO with NI9853, doing CAN message filtering in the FPGA) I usually parse DBC files "manually" by converting them to plain text/csv files…

 

Thanks for that XNet example!

Best regards,
GerdW


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

Dear Gerd,

 

I have enhanced the Project by a path based .dbc database selection and now you can choose whether you want to see tx or rx data.

You can download the Project from here:

https://www.digiinst.de/p/read_can_dbc

Best regards

 

Martin

0 Kudos
Message 7 of 7
(2,786 Views)