This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Error -1073807346: Accessing a VISA Resource in TestStand

Updated Jan 23, 2020

Reported In

Software

  • TestStand

Driver

  • NI-VISA

Issue Details

I have a TestStand sequence containing a code module which makes a VISA call to an instrument. I receive the following error when I run the sequence: 

Error -1073807346 occurred...VISA: (Hex 0xBFFF000E) The resource is valid, but VISA cannot currently access it.

Solution

You will need to make sure you have properly passed a reference session between steps. Use either methods below to do this: 
  • Use the VISA Resources Name Out parameter. 

  • Create the proper local variable for the VISA Resource Name Out value. Go to your Locals tab, right-click and select Insert Local » Types » LabVIEW » LabVIEWIOControl (replace Locals with Parameters if needed).

Additional Information

This error can occur if you pass a Session Number other than 0 as a value under the VISA resource name.
 


A VISA session is a path of communication to a VISA resource. The reference is only valid in the process it is created in. For example, using a resource session number created in the LabVIEW  Development System will only be accessible from within the LabVIEW memory space. Other software processes, such as TestStand or LabWindows/CVI, will not recognize the session number generated in the LabVIEW memory space. Therefore, in TestStand, make sure to pass a value of 0 as the VISA resource session number.