Skip to content

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

PROTOCOLS > SCPI

Here is a Python script that uses Qcodes to connect to a Lakeshore Model 335 Temperature Controller:

import qcodes as qc
from qcodes.instrument_drivers.Lakeshore.Model_335 import LakeshoreModel335
# Create an instance of the Lakeshore Model 335 driver
lakeshore = LakeshoreModel335("lakeshore", "TCPIP::192.168.1.1::INSTR")
# Connect to the instrument
lakeshore.connect()
# Print the instrument ID
print("Instrument ID:", lakeshore.IDN())
# Set the sensor type for channel A to platinum RTD
lakeshore.channel_A.sensor_type("platinum_rtd")
# Enable autoranging for channel A
lakeshore.channel_A.auto_range_enabled(True)
# Set the range for channel A to 1
lakeshore.channel_A.range(1)
# Enable compensation for channel A
lakeshore.channel_A.compensation_enabled(True)
# Set the preferred units for channel A to celsius
lakeshore.channel_A.units("celsius")
# Get the sensor type for channel A
print("Sensor type for channel A:", lakeshore.channel_A.sensor_type())
# Get the autoranging status for channel A
print("Autoranging enabled for channel A:", lakeshore.channel_A.auto_range_enabled())
# Get the range for channel A
print("Range for channel A:", lakeshore.channel_A.range())
# Get the compensation status for channel A
print("Compensation enabled for channel A:", lakeshore.channel_A.compensation_enabled())
# Get the preferred units for channel A
print("Preferred units for channel A:", lakeshore.channel_A.units())
# Set the output voltage for output 1 to 1 V
lakeshore.output_1.V(1)
# Set the output current for output 1 to 0.1 A
lakeshore.output_1.I(0.1)
# Set the output mode for output 1 to closed loop
lakeshore.output_1.mode("closed_loop")
# Get the output voltage for output 1
print("Output voltage for output 1:", lakeshore.output_1.V())
# Get the output current for output 1
print("Output current for output 1:", lakeshore.output_1.I())
# Get the output mode for output 1
print("Output mode for output 1:", lakeshore.output_1.mode())
# Disconnect from the instrument
lakeshore.disconnect()

Note: Replace "TCPIP::192.168.1.1::INSTR" with the actual address of your Lakeshore Model 335 Temperature Controller.