Skip to content

Python driver for Stanford Research Systems SR860 DSP lock-in amplifier instrument.

License

SQLim/sr860-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sr860-python

License: MIT GitHub Stars

Abstract

sr860-python is a pure Python package to facilitate the use of Stanford Research Systems SR860 DSP lock-in amplifier instrument.

sr860-python requires Python 3.

sr860-python communicates with the instrument using the VISA API interface (pyVISA package).

sr860-python is MIT licensed.

Installation

Using pip:

python -m pip install git+https://github.com/SQLim/sr860-python.git

Using setup.py:

git clone https://github.com/SQLim/sr860-python.git
cd sr860-python/
python setup.py install

Example

from srs import SR860

lia = SR860('USB0::0xB506::0x2000::003921::INSTR') # Windows USB 
lia.init()

# Set modulation frequency and amplitude
lia.frequency = 173.31   # float [Hz]
lia.amplitude = 1.0      # float [Vrms]

# Enable sync filter
lia.sync_filter_enable = True

# Set sensitivity
lia.sensitivity = 500e-6 # float [Vrms]

# Get filter time constant
lia.time_constant        # returns float [e.g., 0.1] [s]

# Auto phase function
lia.auto_phase()

# Read X channel
lia.X_output()

# Read XYRP channels simultaneously
lia.XYRP_outputs()

# Check if advance filter is enabled
lia.adv_filter_enable     # returns bool [e.g., False]

License

sr860-python is covered under the MIT license.

About

Python driver for Stanford Research Systems SR860 DSP lock-in amplifier instrument.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages