LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN communication issue

I want to do CAN testing using PXI-8512 for S32K566 MCU board.1st step i try to do is that, I took CAN loopback test from NI example finder and executed and also checked the signals using Saleae. I connected CANH pin of port 1 to CANH pin of port 2. Similarly for CANL and GND by referring the image(shown below).  I'm getting CAN error frames and in the block diagram, the array size is always zero in the reading part. I'll upload the block diagram, front panel and saleae screenshots. Please analyse those and let me know where is the issue.

 

Thank you

Parvathy Krishna R  

0 Kudos
Message 1 of 3
(73 Views)

Try Log Bus Traffic With NI-XNET Bus Monitor While Running NI-XNET Application

Enable Error Frame in the Interface and Database Settings. It will give you more info.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 3
(34 Views)

Hi ZYOng,

Thanks for the quick reply.

 

I tried the steps you suggested, but I’m still facing the same issue. In the Bus Monitor, I’m not able to see any frames, even after following the procedure carefully. I'll share the screenshots as well.

Could you please check whether the block diagram is correct or let me know if any modifications are required? As far as I can tell, the hardware seems to be functioning correctly, so the issue might be on the software side.

Are there any additional steps or configurations that need to be followed to get the CAN communication working properly?

 

Thanks in advance for your support.

Download All
0 Kudos
Message 3 of 3
(6 Views)