# Lake Shore 331 Temperature Controller

class pymeasure.instruments.lakeshore.LakeShore331(adapter, name='Lakeshore Model 336 Temperature Controller', **kwargs)

  Bases: `SCPIUnknownMixin`, `Instrument`

  Represents the Lake Shore 331 Temperature Controller and provides a high-level interface for interacting with the instrument. Note that the 331 provides two input channels (A and B) and two output channels (1 and 2). This driver makes use of the LakeShore Channel Classes.

      controller = LakeShore331("GPIB::1")

      print(controller.output_1.setpoint)         # Print the current setpoint for loop 1
      controller.output_1.setpoint = 50           # Change the loop 1 setpoint to 50 K
      controller.output_1.heater_range = 'low'    # Change the heater range to low.
      controller.input_A.wait_for_temperature()   # Wait for the temperature to stabilize.
      print(controller.input_A.temperature)       # Print the temperature at sensor A.

  input_A
    Channel:

      `LakeShoreTemperatureChannel`

  input_B
    Channel:

      `LakeShoreTemperatureChannel`

  output_1
    Channel:

      `LakeShoreHeaterChannel`

  output_2
    Channel:

      `LakeShoreHeaterChannel`