Error 65538 with NI 9853 CAN module in LabVIEW FPGA

Updated Feb 6, 2018

Reported In

Hardware

  • NI-9853

Software

  • LabVIEW
  • LabVIEW FPGA Module

Driver

  • NI CompactRIO

Issue Details

I am using a NI-9853 CAN module with my CompactRIO, and I am getting the following error when I run a VI from my FPGA target:

Error -65538 -  The operation failed to complete in time.  Make sure the module is not busy and the system is configured properly.

How can I fix this error?

Solution

This error indicates that there was a timeout when reading or writing to a CAN device. Since CAN is a protocol, the NI-9853 module needs to transmit or receive full CAN frames in order to function properly.  In the CAN, a frame must be acknowledged for it to be successfully transmitted. If a frame is not successfully acknowledged, the controller will send it again. If there is no acknowledgment, the device will time out.

Make sure that a device capable of sending or receiving a CAN protocol is connected to the module. Also, make sure that the device is terminated properly. Information on proper termination for NI-CAN hardware can be found at this link.

WAS THIS ARTICLE HELPFUL?

Not Helpful