Error -1074384864 Occurred When Running XNET Session in LabVIEW

Updated Aug 12, 2024

Reported In

Hardware

  • C Series CAN Interface Module

Software

  • LabVIEW

Driver

  • NI-XNET

Issue Details

When I try to run NI-XNET session with Signal In Single Point Read XNET function in LabVIEW with CAN Interface Module, error -1074384864 occurred. How to solve the issue?

Error -1074384864 occurred at an unidentified location

Possible reason(s):
NI-XNET: (Hex 0xBFF63020) An invalid reference has been passed to a NI-XNET session function. Solution: Only pass reference retrieved from Create Session, or from an IO name of a session in LabVIEW project.

XNET.png

Solution

As mentioned in the LabVIEW's Error Explain, the cause of this issue is due to invalid reference passed to the NI-XNET Create Session.
In order to solve the issue, please check the following methods:

  1. Make sure to include XNET Create Session VI and XNET Start VI before XNET Read function as shown in below example snippet.CAN Signal Input.png
  2. Make sure the XNET interface name in the VI is same with the XNET interface name set in NI-MAX

 

Additional Information

For further understanding how to develop CAN program, you can refer to the CAN example files included with LabVIEW in below directories.

C:\Program Files\NI\LVAddons\nixnet\1\examples\nixnet\projects\NI-XNET CAN Sessions