08-09-2023 11:00 AM
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.
Solved! Go to Solution.
08-14-2023 05:24 AM
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.
08-17-2023 09:14 AM
Hello,
Thank you for your response. Now I am able to log errors and monitor communication state changes.
Best regards,
Akshay