LabVIEW Error -1073807322 When Communicating With Instrument Using NI-VISA

Updated Apr 19, 2024

Reported In

Software

  • LabVIEW

Driver

  • NI-VISA

Issue Details

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

Error -1073807322: Specified event type is not supported by the resource.
image.png
Testing the instrument's communication with the NI MAX VISA Test Panel shows successful responses to queries (e.g., *IDN?\n).

Solution

Some 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