LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading the CAN bus error frame

Solved!
Go to solution

Hello,

 

I have configured the NI-USB 8473 hardware as shown in the NI-CAN examples; however, I have added NC_ATTR_LOG_BUS_ERROR attribute and set it TRUE to monitor the Comm State.

I have read the HW/SW manual but not able to understand how to read the CAN Bus error frame. My main objective is to monitor the Comm State.

Thank you for your help.

0 Kudos
Message 1 of 3
(1,915 Views)
Solution
Accepted by topic author anikumbh

Hii,

 

You can set NC_ATTR_LOG_BUS_ERROR to TRUE to enable logging of bus errors, including Communication State changes. Continuously read the error frames using the same method as reading regular CAN frames. These error frames will include information about Communication State transitions.

I hope this will be help you.

Best regard,
livetheorangelife
Message 2 of 3
(1,864 Views)

Hello,

 

Thank you for your response. Now I am able to log errors and monitor communication state changes.

 

Best regards,

Akshay

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