Skip to content

Connecting to SR 860 by Stanford Research Systems in Python

Instrument Card

The new SR860 Lock-in Amplifier is the latest in a line of innovative lock-ins from SRS. With unparalleled analog performance, sophisticated new digital signal processing features, a thoroughly modern, intuitive user interface, and a wide range of computer connectivity options, the SR860 is the ideal choice for any synchronous detection application.

SR 860

Device Specification: here

Manufacturer card: STANFORD RESEARCH SYSTEMS

STANFORD RESEARCH SYSTEMS

Stanford Research Systems is a maker of general test and measurement instruments. The company was founded in 1980, is privately held, and is not affiliated with Stanford University. Stanford Research Systems manufactures all of their products at their Sunnyvale, California facility.

  • Headquarters: Sunnyvale, California
  • Yearly Revenue (millions, USD): 24.9
  • Vendor Website: here

Connect to the SR 860 in Python

PROTOCOLS > SCPI

from pymeasure.adapters import VISAAdapter
from pymeasure.instruments.sr860 import SR860
# Create a VISA adapter for the instrument
adapter = VISAAdapter("GPIB0::1::INSTR")
# Connect to the SR860 Lock-in Amplifier
lockin = SR860(adapter)
# Perform operations with the lock-in amplifier
x_value = lockin.x
y_value = lockin.y
magnitude = lockin.magnitude
theta = lockin.theta
# Print the values
print("X value:", x_value)
print("Y value:", y_value)
print("Magnitude:", magnitude)
print("Theta:", theta)
# Disconnect from the lock-in amplifier
lockin.disconnect()

This script connects to the SR 860 Lock-in Amplifier using a VISA adapter and performs measurements of the X value, Y value, magnitude, and theta. The values are then printed to the console. Finally, the script disconnects from the lock-in amplifier.