キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/7
4,123件の閲覧回数

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 件の賞賛
メッセージ2/7
4,116件の閲覧回数

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 件の賞賛
メッセージ3/7
4,112件の閲覧回数

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 件の賞賛
メッセージ4/7
4,111件の閲覧回数

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 件の賞賛
メッセージ5/7
4,043件の閲覧回数

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 件の賞賛
メッセージ6/7
4,041件の閲覧回数

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 件の賞賛
メッセージ7/7
4,016件の閲覧回数