msl.equipment.resources.isotech.millik module

IsoTech milliK Precision Thermometer, with any number of connected millisKanners

class msl.equipment.resources.isotech.millik.MilliK(record: EquipmentRecord)[source]

Bases: object

Establishes a connection to an IsoTech MilliK Precision Thermometer for different interfaces:

Note that millisKanners only have an RS232 serial interface.

Do not instantiate this class directly. Use the connect() method to connect to the equipment.

Parameters:

record – A record from an Equipment-Register Database.

property connected_devices: list[str]

A list of information about the connected devices (manufacturer, model, serial number, firmware version), e.g. [‘Isothermal Technology,millisKanner,21-P2593,2.01’, ‘Isothermal Technology,milliK,21-P2460,4.0.0’].

property num_devices: int

The number of connected devices.

property channel_numbers: list[int]

A list of available channel numbers, e.g. [1, 2] for a single milliK, or [1, 10, 11, 12, 13, 14, 15, 16, 17] for a milliK connected to a single millisKanner, etc.

configure_resistance_measurement(channel: int, meas_range: float, *, norm: bool = True, fourwire: bool = True) None[source]

Configure the milliK to measure resistance for the specified channel.

Parameters:
  • channel – The channel to configure for resistance measurement.

  • meas_range – The measurement range in ohms. Selects from 115 Ohms, 460 Ohms and 500 kOhms.

  • norm – The sense current to use for measurement. Defaults to use normal (1 mA) sense current, unless False in which case it uses root2*1 mA to determine self-heating effects. Thermistors always use 2 μA.

  • fourwire – The wiring arrangement eg 3 or 4 wire.

read_channel(channel: int, n: int = 1) float | list[float][source]

Initiate and report a measurement using the conditions defined by configure_resistance_measurement().

Parameters:
  • channel – The channel to read.

  • n – The number of readings to make.

Returns:

A list of n readings, or a single float value if only one reading is requested.

read_all_channels(n: int = 1) tuple[list[int], list[float]][source]

Read from all configured channels using the conditions defined by configure_resistance_measurement().

Parameters:

n – The number of readings to average for each returned value.

Returns:

A tuple of lists of channel numbers and readings from all configured channels.

disconnect() None[source]

Return the milliK device to LOCAL mode before disconnecting from the device.