Connecting to SR 830 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
Device Specification: here
Manufacturer card: 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 830 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
In this script, we first import the SR830
class from the pymeasure.instruments.srs
module. We then create an instance of the SR830
class, passing the GPIB address of the lock-in amplifier as the argument.
Next, we set the lock-in amplifier parameters using the properties provided by the SR830
class. In this example, we set the lock-in frequency to 1 kHz, sensitivity to 1 ยตV, and time constant to 1 ms.
We then read the X and Y values from the lock-in amplifier using the x
and y
properties provided by the SR830
class.
Finally, we print the X and Y values and disconnect from the lock-in amplifier.
Note: Make sure you have the necessary dependencies installed, such as pymeasure
and the appropriate GPIB driver for your system.