Error -1073807343 When Reading/Writing VISA to Serial Port in LabVIEW or LabWindows™/CVI

Updated Mar 19, 2024

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 or LabWindows/CVI, but when I try to run my code I intermittently receive the following error:

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 happens when the computer cannot communicate correctly with the device it is sending commands to. 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 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 that you are using the correct port number.
    • Check the resource in: 
    • If you are currently using a 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.
Note: This is a common cause after moving an application that is working on a PC to another PC with a different operating system. The resource name can change and it is recommended to test both NI-MAX and VISA resource names in the application if the error shows up. 
  • 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.
  • If the issue occurs only when running LabVIEW as Administrator or vice versa: The VI is most likely corrupted. Check How Can I Fix my Corrupted VI in my LabVIEW Project?
  • Using multiple VISA resources on a Real-Time startup application: Try to add a delay at the start of the code before calling any of the VISA resources to be sure the system recognizes all of them.