Error -1074130544: The Session Handle Is Not Valid with NI Device/IVI Driver

Updated Feb 28, 2020

Reported In

Software

  • LabVIEW

Issue Details

  • I am trying to create a LabVIEW application for my switch hardware using NI-SWITCH I get Error -1074130544.
  • When I try to execute my LabVIEW code that is controlling hardware or instruments, I get Error -1074130544. I am able to communicate with the instruments in NI MAX but the program still throws this error. How do I resolve this ?
  • I have a power supply that I am trying to control via USB. I installed the USB driver, the IVI and LabVIEW drivers. However, I don't know which channel name to use. When I execute any of the example VIs that came with the driver, I receive error -1074130544: "The session handle is not valid."
Error -1074130544 ocurred at <Driver & VI>
Possible reason(s):
IVI: (Hex 0XBFFA1190) The session handle is not valid.

Solution

In most cases, this error is caused by an uninitialized instrument or hardware component.
  • Ensure that the initialize VI for your device is called before any other functions are called.
  • Ensure that there is a VI called that closes the communications to the device using the close VI.
  • Ensue that multiple Initialize VI's have not been called for the same device.
  • Make a new VI having only one initialize and once close VI wired to each other and run it. Check if the error still persists by wiring appropriate error indicator.