From troubleshooting technical issues and product recommendations, to quotes and orders, we’re here to help.
Contact Us
Perspectives
Perspectives showcases how NI sees what’s next in the world of test and technology.
View all articles
Welcome to the product revolution, an era defined by the proliferation of smart produ...
Read our featured article
Request Support
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Open a service request
Popular Software Downloads
See all Software Product Downloads
LabVIEW
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Open a service request
This document gives an overview of NI-VISA, the NI implementation of the Virtual Instrument Software Architecture (VISA) API.
NI-VISA is an API that provides a programming interface to control Ethernet/LXI, GPIB, serial, USB, PXI, and VXI instruments in NI application development environments like LabVIEW, LabWindows/CVI, and Measurement Studio. The API is installed through the NI-VISA driver.
NI-VISA is recommended because of the following three advantages.
1. Interface Independence
NI-VISA uses many of the same operations to communicate with instruments, regardless of the interface type. This makes it easy to switch interfaces and provides a single language to learn for multiple different instruments. For example, the VISA command to write an ASCII string to a message-based instrument is the same whether the instrument interface is serial, GPIB, or USB.
2. Platform Portability
NI-VISA is designed so that programs written using VISA function calls can move from one platform to another. VISA does this by defining its own data types. This ensures your application performs consistently across different platforms. Therefore, a VISA application written in LabVIEW can be easily ported to any platform that supports LabVIEW. NI-VISA supports several operating systems, including
Windows OS versions
, MacOS versions, and Linux distributions.
3. Ease of Use
NI-VISA is an extremely easy interface to learn. It provides an API that has bus-independent functions for most of its I/O functionality. The most used functionality for instrumentation is provided in a compact command set, eliminating the need to learn low level communication protocols for multiple interface types.
Before you start using NI-VISA, it is helpful to learn some of the terminology commonly used throughout the development process.
VISA Resource
A VISA resource is any instrument in your system. If you have multiple instruments connected to one host, each instrument is considered a VISA resource. The resource is a complete description of the set of capabilities for the instrument.
The VISA resource type will depend on your instrument. There are several types: INSTR, SOCKET, RAW, etc.
-
VISA Resource Types
VISA Resource Name (Instrument Descriptor)
The VISA Resource Name is the exact name of the VISA resource. It specifies the instrument interface type, the instrument address, and the VISA Session type. The VISA resource name control is used to communicate with the instrument in your development environment. Use this information to see if your instrument is recognized and addressed properly in your program.