Connecting to Lakeshore Model 335 by Lakeshore in Python
Instrument Card
The Model 335 supports the industry’s most advanced line of cryogenic temperature sensors as manufactured by Lake Shore, including diodes, resistance temperature detectors (RTDs), and thermocouples. The controller’s zone tuning feature allows you to measure and control temperatures seamlessly from 300 mK to over 1,500 K. This feature automatically switches temperature sensor inputs when your temperature range goes beyond the usable range of a given sensor.
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 Model 335 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
Here is a Python script that uses Qcodes to connect to a Lakeshore Model 335 Temperature Controller:
import qcodes as qcfrom qcodes.instrument_drivers.Lakeshore.Model_335 import LakeshoreModel335
# Create an instance of the Lakeshore Model 335 driverlakeshore = LakeshoreModel335("lakeshore", "TCPIP::192.168.1.1::INSTR")
# Connect to the instrumentlakeshore.connect()
# Print the instrument IDprint("Instrument ID:", lakeshore.IDN())
# Set the sensor type for channel A to platinum RTDlakeshore.channel_A.sensor_type("platinum_rtd")
# Enable autoranging for channel Alakeshore.channel_A.auto_range_enabled(True)
# Set the range for channel A to 1lakeshore.channel_A.range(1)
# Enable compensation for channel Alakeshore.channel_A.compensation_enabled(True)
# Set the preferred units for channel A to celsiuslakeshore.channel_A.units("celsius")
# Get the sensor type for channel Aprint("Sensor type for channel A:", lakeshore.channel_A.sensor_type())
# Get the autoranging status for channel Aprint("Autoranging enabled for channel A:", lakeshore.channel_A.auto_range_enabled())
# Get the range for channel Aprint("Range for channel A:", lakeshore.channel_A.range())
# Get the compensation status for channel Aprint("Compensation enabled for channel A:", lakeshore.channel_A.compensation_enabled())
# Get the preferred units for channel Aprint("Preferred units for channel A:", lakeshore.channel_A.units())
# Set the output voltage for output 1 to 1 Vlakeshore.output_1.V(1)
# Set the output current for output 1 to 0.1 Alakeshore.output_1.I(0.1)
# Set the output mode for output 1 to closed looplakeshore.output_1.mode("closed_loop")
# Get the output voltage for output 1print("Output voltage for output 1:", lakeshore.output_1.V())
# Get the output current for output 1print("Output current for output 1:", lakeshore.output_1.I())
# Get the output mode for output 1print("Output mode for output 1:", lakeshore.output_1.mode())
# Disconnect from the instrumentlakeshore.disconnect()
Note: Replace "TCPIP::192.168.1.1::INSTR"
with the actual address of your Lakeshore Model 335 Temperature Controller.