Error -1073807343 in LabVIEW When Reading/Writing VISA to Serial Port

Updated Feb 24, 2020

Reported In

Hardware

  • CompactRIO Chassis

Software

  • LabVIEW

Driver

  • NI-Serial
  • NI-VISA

Issue Details

I am trying to do a VISA Serial Read/Write in LabVIEW, but when I try to run my code I intermittently receive error -1073807343:


Error -1073807343 occurred at Property Node (arg1) in VISA Configure Serial Port (Instr).vi->Basic Serial Write and Read. vi

Possible reason(s):
VISA: (Hex0xBFFF0011) Insufficient location information or the device or resource is not present in the system.
 

Solution

This error has a few different possible causes. Follow these recommended steps to troubleshoot this error:
  • Ensure you have NI-VISA and NI-Serial Driver installed in Your System: 
    • Development: Verify that the driver(s) you need are installed and appears under My Systems >> Software in NI MAX.
      • Otherwise, download and install the correct driver(s) for your hardware (found under Supported Devices under the driver version readme)
    • Real-Time Deployment: Verify that that the driver(s) you need are under Remote System >> [Your Target] >> Software. If it is not installed on the device, install them on your target .
  • Verify that you are addressing your instrument correctly.
    • Check the resourcing in: 
    • If you are currently using VISA Alias, try using the VISA Resource Name
      • For example: using the Resource Name, ​ASRL3::INSTR, instead of the Alias, "COM3"
    • If you are deploying your application, programmatically retrieve VISA resource name. ​​
  • Verify that you are properly opening and closing driver sessions.
    • In LabVIEW, you will generally need to open an NI-VISA session before communicating with an instrument and close the session once the communication is complete. Failure to follow these steps can result in this error and cause various other problems in communicating with your instruments. See more below:
  • Using an adapter, isolator, or hub: try to use a direct connection or a different adapter, isolator, or hub.
  • cRIO in Hybrid Mode using the NI 987x: If you are planning to load and run the FPGA VI programmatically from the Real-Time VI using the Open FPGA VI Reference or Run Method, make sure that a considerable delay (at least 2 seconds) is left between the moment when the FPGA VI starts running and when the serial communication is opened with the NI VISA VIs. This will ensure that the needed intermediate layers are already up and running before trying to establish communication.