Connecting to SRS 830 by Stanford Research Systems in Python
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 SRS 830 in Python
PROTOCOLS > SCPI
To connect to a SRS 830 Lock-In Amplifier using Instrumentkit, you can use the following code:
This code imports the
instrumentkit library and uses the
open_gpibusb method from the
ik.srs.SRS830 module to connect to the lock-in amplifier. The
open_gpibusb method takes the device path (
'/dev/ttyUSB0') and the GPIB address (
1) as arguments.
Once connected, you can set the lock-in frequency using the
frequency property of the
srs object. In this example, the frequency is set to 1000 Hz.
Finally, you can use the
take_measurement method of the
srs object to take a measurement. This method takes the sample rate (1 Hz) and the number of samples (10) as arguments and returns the measurement data.