Skip to content

Connecting to SR830 by Stanford Research Systems in Python

Instrument Card

SR830 Lock-In Amplifier provide high performance at a reasonable cost. The SR830 simultaneously displays the magnitude and phase of a signal,

SR830

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.

  • Headquarters: USA
  • Yearly Revenue (millions, USD): 25
  • Vendor Website: here

Connect to the SR830 in Python

PROTOCOLS > SCPI

To connect to a SR830 Lock-in Amplifier using Qcodes, you can use the following Python script:

import qcodes as qc
from qcodes.instrument_drivers.stanford_research.SR830 import SR830
# Create an instance of the SR830 instrument
lockin = SR830('lockin', 'TCPIP::192.168.1.1::INSTR')
# Connect to the instrument
lockin.connect()
# Print the instrument ID
print(lockin.IDN())
# Set the frequency to 1 kHz
lockin.frequency(1000)
# Set the sensitivity to 10 mV
lockin.sensitivity(0.01)
# Enable the front panel
lockin.enable_front_panel()
# Read the X and Y values
x = lockin.X()
y = lockin.Y()
# Print the X and Y values
print(f'X: {x}, Y: {y}')
# Disconnect from the instrument
lockin.disconnect()

This script creates an instance of the SR830 instrument and connects to it using the specified address (TCPIP::192.168.1.1::INSTR). It then sets the frequency and sensitivity of the lock-in amplifier, enables the front panel, and reads the X and Y values. Finally, it disconnects from the instrument.

Note: Replace 'TCPIP::192.168.1.1::INSTR' with the actual address of your SR830 Lock-in Amplifier.