Connecting to Lakeshore 331 by Lakeshore in Python
Instrument Card
The Model 331 cryogenic temperature controller combines the easy operation and unsurpassed reliability of the Model 330 with improved sensor input and interface flexibility, including compatibility with negative temperature coefficient (NTC) resistance temperature detectors (RTDs). Backed by the Lake Shore tradition of excellence in cryogenic sensors and instrumentation, the Model 331 temperature controller sets the standard for mid-price range temperature control instruments.
Device Specification: here
Manufacturer card: LAKESHORE
Supporting advanced scientific research, Lake Shore is a leading global innovator in measurement and control solutions.
- Headquarters: Westerville, Ohio, USA
- Yearly Revenue (millions, USD): 21.4
- Vendor Website: here
Connect to the Lakeshore 331 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
from pymeasure.instruments.lakeshore import LakeShore331
# Connect to the Lakeshore 331 Temperature Controllercontroller = LakeShore331("GPIB::1")
# Print the current setpoint for output 1print(controller.output_1.setpoint)
# Change the setpoint for output 1 to 50 Kcontroller.output_1.setpoint = 50
# Change the heater range for output 1 to 'low'controller.output_1.heater_range = 'low'
# Wait for the temperature at input A to stabilizecontroller.input_A.wait_for_temperature()
# Print the temperature at input Aprint(controller.input_A.temperature)
This script first imports the LakeShore331
class from pymeasure.instruments.lakeshore
. It then creates an instance of the LakeShore331
class, passing the GPIB address of the temperature controller as the argument.
The script then demonstrates some basic operations with the temperature controller. It prints the current setpoint for output 1, changes the setpoint to 50 K, changes the heater range to ‘low’ for output 1, waits for the temperature at input A to stabilize, and finally prints the temperature at input A.
Note that you will need to have the pymeasure
package installed in order to run this script.