PyVISA
PyVISADocs

PyVISA Documentation | Python VISA Instrument Control

PyVISA presentation, a Python wrapper for the VISA driver that enables controlling measurement instruments using Python.

Control test & measurement instruments with Python. PyVISA provides a unified interface to communicate with oscilloscopes, multimeters, power supplies, and thousands of other instruments regardless of the interface (USB, Ethernet, GPIB, RS232).

Quick Example

import pyvisa

# Connect to your instrument
rm = pyvisa.ResourceManager()
scope = rm.open_resource('USB0::0x0699::0x03A4::C012345::INSTR')

# Send commands and get data
scope.write('CH1:SCALE 0.5')  # Set channel 1 to 500mV/div
frequency = scope.query('MEASURE:FREQUENCY?')
print(f"Signal frequency: {frequency}")

# Capture waveform data
waveform = scope.query_binary_values('CURVE?', datatype='b')

What You'll Learn

This documentation provides practical, production-ready examples that you can use immediately in your projects. Whether you're automating tests, collecting research data, or building measurement systems, you'll find working code and best practices from real-world applications.

New to instrument control? Start with Platform Setup to install PyVISA, then try the Multimeter Example for hands-on learning.

Typical PyVISA Project Structure

main.py
requirements.txt
README.md

Project Organization

Organizing your PyVISA project with a clear structure makes it easier to maintain and scale your test automation system.

Start Your Journey

Supported Instruments

PyVISA works with virtually any VISA-compliant instrument:

  • Oscilloscopes - Capture waveforms, measure timing, analyze signals
  • Digital Multimeters - Precision voltage, current, resistance measurements
  • Power Supplies - Automated power sequencing and monitoring
  • Signal Generators - Create test signals and modulation patterns
  • Spectrum Analyzers - RF measurements and spectral analysis
  • Network Analyzers - S-parameters and impedance measurements
  • Electronic Loads - Battery testing and power validation
  • Data Acquisition - Multi-channel logging and sensor readouts

Community & Support

Join our Discord community for help, discussions, and to connect with other developers using PyVISA.