Skip to content

Connecting to Lakeshore 340 by Lakeshore in Python

Instrument Card

The Model 340 cryogenic temperature controller is our most advanced temperature controller and offers unsurpassed resolution, accuracy, and stability for temperature measurement and control applications to as low as 100 mK. Operating with diodes, platinum RTDs, and negative temperature coefficient (NTC) resistor sensors, the Model 340 is expandable to ten sensor inputs or to operate with thermocouple or capacitance sensors. It has two control loops, with the first loop powered to 100 W.

Lakeshore 340

Device Specification: here

Manufacturer card: LAKESHORE

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 340 in Python

PROTOCOLS > SCPI

To connect to a Lakeshore 340 Temperature Controller using Instrumentkit, you can use the following Python script:

import instrumentkit as ik
# Connect to the Lakeshore 340 Temperature Controller
inst = ik.lakeshore.Lakeshore340.open_gpibusb('/dev/ttyUSB0', 1)
# Read the temperature of the first sensor
temperature = inst.sensor[0].temperature
print(temperature)

This script imports the instrumentkit module and uses the open_gpibusb method of the Lakeshore340 class to connect to the Temperature Controller. The open_gpibusb method takes the device path (/dev/ttyUSB0) and the GPIB address (1) as arguments.

After connecting, the script reads the temperature of the first sensor using the temperature property of the Sensor class. The temperature is then printed to the console.