CAN Port Incorrectly Identified as "CAN-1" Results in Error -1074384758

Updated May 17, 2018

Reported In

Hardware

  • NI-9860
  • Industrial Controller

Software

  • LabVIEW
  • Measurement & Automation Explorer (MAX)

Driver

  • NI-XNET

Issue Details

Sometimes my CAN port is misidentified as "CAN-1" in LabVIEW and NI Measurement and Automation Explorer (MAX). When this happens, I see the error shown below. How can I fix this?

Error -1074384758 occurred at an unidentified location

Possible reason(s):

NI-XNET:  (Hex 0xBFF6308A) The interface name given does not specify a valid and existing interface. Solution: Use a valid and existing interface. These can be obtained using MAX, XNET system properties, or the LabVIEW XNET Interface IO name. If you are using CompactRIO, refer to the topic "Getting Started with CompactRIO" in the NI-XNET Hardware and Software Help.


Solution

This is a known issue that has been fixed in XNET 17.5. Please upgrade to XNET 17.5 or later to resolve this problem. 

Note: If upgrading to XNET 17.5 or later is not an option or does not fix the issue, hard-coding a delay of 500 ms before any XNET calls are made is a workaround to this issue. This works because there is special IP on the FPGA that allows XNET to function. This XNET FPGA IP takes about 500 ms to boot, after which XNET calls will function properly.

Additional Information

The issue described above occurs when LabVIEW or MAX tries to establish a connection with an XNET device and the firmware on the XNET device times out while reading a register. This causes MAX to rename the device to the default of "CAN-1".  

WAS THIS ARTICLE HELPFUL?

Not Helpful