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.

LabVIEW Error -1073807343 When Using TCP/IP Instrument With NI-VISA

Updated Apr 19, 2024

Issue Details

I am attempting to use NI-VISA in a LabVIEW application to communicate with a TCP/IP instrument. The application successfully opens the VISA session, but the VISA Write or VISA Read functions show the following error:


Error -1073807343: Insufficient location information or the device or resource is not present in the system.

image.png


Testing the instrument's communication with the NI MAX VISA Test Panel shows successful responses to queries (e.g., *IDN?\n), as illustrated below.
 

image.png

 

Solution

Some TCP/IP instruments only support synchronous I/O communication mode. The VISA Test Panel in NI MAX works in this mode (uses the NI-VISA viWrite and viRead functions), while the LabVIEW VISA Write or VISA Read functions are set to work in an Asynchronous I/O mode by default.

To set the VISA Write and VISA Read functions to operate in synchronous mode, open the contextual menu of the function, navigate to "Synchronous I/O Mode," and then select "Synchronous" from the shortcut menu to read or write data synchronously, as shown in the image below. This procedure must be repeated for each VISA function used to communicate with the instrument.

image.png