Connecting to SR 510 by Stanford Research Systems in Python
Instrument Card
The SR510 is analog lock-in amplifiers which can measure AC signals as small as nanovolts in the presence of much larger noise levels.
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 510 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
This script first creates a VISA adapter using the VISAAdapter
class from Pymeasure. The adapter is initialized with the VISA address of the lock-in amplifier.
Then, an instance of the SR510
class is created, passing the adapter as an argument. This represents the lock-in amplifier instrument.
The script sets the lock-in amplifier properties by assigning values to the phase
, time_constant
, and sensitivity
attributes of the SR510
instance.
Next, the script reads the lock-in amplifier measurements by accessing the frequency
, status
, and output
attributes of the SR510
instance.
Finally, the script prints the measurements and disconnects from the lock-in amplifier by calling the disconnect()
method of the SR510
instance.
Note: Make sure to replace the VISA address "GPIB0::1::INSTR"
with the actual address of your lock-in amplifier.