PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use XNET convert CAN FD signals to frames ?

Hello 

   I wonder whether XNET supports  conversion between signal and frame of CAN FD .

   We know that payload length maximum is 64 in CANFD database but XNET conversion is 8 . 

  Hope your help sincerely.

program.JPG

 

0 Kudos
Message 1 of 7
(1,619 Views)

Is there a way to configure payload length? 

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

Hey, guys, have you solved this problem? How did you solve it? I am currently experiencing the same problem and reporting the same error

0 Kudos
Message 3 of 7
(1,248 Views)

This question is best to be posted at Automotive and Embedded Networks board.

The shipping example is still good to be used with the CAN FD, as long as all the signals have a size smaller than a byte. Otherwise, you would need to use the byte array for the conversion. Make sure that your frames have the I/O mode of CAN FD. A cluster of CAN FD can have both CAN 2.0 and CAN FD frames. Using CAN and CAN FD in same NI-XNET Interface

ZYOng_1-1679926205183.pngZYOng_2-1679926221987.png

 

 

 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 4 of 7
(1,238 Views)

"I used the. dbc file in the zip file, but it still couldn't be parsed. The error message still prompted me that it exceeded 8 bytes."

The way I tried it was: I used the xml file in the zip file, and I used XNET to convert it to a. dbc file. Then, I only retained one frame of data inside, and deleted the other data. Then, I saved the retained frame of data as' test32byte. dbc '. "Then I will import this frame as my dbc file into the project for parsing. There are no errors reported in the 'Signal to Frame CAN' step, but an error exceeding 8 bytes is still reported in the 'Frame CAN to Signal' step'. I don't quite understand the difference between this and the paradigm. Or where is my problem.

Download All
0 Kudos
Message 5 of 7
(1,206 Views)

Kindly please upload the database file and the VI you used, this would help to save our time to try reproducing your issue from scratch. Uploading only images requires us to guess what you are trying to do.

Using the DBC exported from the XML and then reimported, running in the same VI I uploaded, no issue was found.

ZYOng_0-1680012371077.png

 

 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 6 of 7
(1,188 Views)

Thank you very much for your answer. Just after replying to you, I tried again to check my program and data, and finally let me find the cause of the error. The reason for the error lies in: I defined the data uploaded by. CANFD as 64 bytes, as I stated in my previous reply that my. DBC is 32 bytes, so later I guess it was caused by this. So I redefined. dbc as 64 bytes and successfully parsed it. Finally, thank you for your answers and assistance, and send my most sincere gratitude.

0 Kudos
Message 7 of 7
(1,183 Views)