LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

[CVI2013] [XNET] Get array output from DBC file

Hello All, 

 

I'm using XNET API to manage CAN port. And I have a "special" need for now : 

I have w .DBC file for CAN, where a frame is descriped. This frame contain few signals. 

 

What I want to do is to get an array that contain the 8 bytes CAN frame (without calling Write or Read functions). And to do this, as input I have the .DBC file and the data value of all signals. 

Otherwise, I want to have a copy of the output frame, as if I called the "nxWrite" function, but without calling it really. The result (the frame) must be just stored in an 8-byte array.

 

Can we do that ? 

An example please ? 

 

Thanks in advance,

0 Kudos
Message 1 of 3
(3,055 Views)

Hi Houssam_AZ,

 

I don't know of any pre-existing examples that do exactly that, but these look like good places to start:

http://forums.ni.com/t5/Automotive-and-Embedded-Networks/How-to-parse-the-dbc-file/td-p/1123437

https://github.com/Polyconseil/libcanardbc

William R.
0 Kudos
Message 2 of 3
(3,017 Views)

Hello GiantDeathRobot, 

Thank you for your reply. 

 

These links show how to parse the DBC file to extract signals names. It is much more simple to use XNET API functions to do that. And it's not what I'm looking to do unfortunetally. 

 

What I want to do is to generate the frame into an array in my CVI code to analyse it later. 

 

The thing is there is no single example ... I need to found an XNET expert because I don't even know if it is possible to do that 😞

0 Kudos
Message 3 of 3
(3,010 Views)