Module azcam.tools.tempcon_cryocon24

Contains the base TempConCryoCon24 class.

Classes

class TempConCryoCon24 (tool_id='tempcon', description=None)

Cryogenic Control Systems Model 24 temperature control class.

Creates the tool.

Args

tool_id
Name of tool
description
Description of tool, defaults to tool_id.

Ancestors

Instance variables

var description

Inherited from: TempCon.description

descriptive tool name

var enabled

Inherited from: TempCon.enabled

1 when tool is enabled

var initialized

Inherited from: TempCon.initialized

1 when tool has been initialized

var is_reset

Inherited from: TempCon.is_reset

1 when tool has been reset

var tool_id

Inherited from: TempCon.tool_id

name used to reference the tool ("controller", "display", …)

var verbosity

Inherited from: TempCon.verbosity

verbosity for debug, >0 is more verbose

Methods

def apply_corrections(self, temperature: float, temperature_id: int = 0) ‑> None

Inherited from: TempCon.apply_corrections

Correct the temperatures for offset and scale is temperature correction is enabled.

Args

temperature
temperatures to be corrected

def define_keywords(self)

Inherited from: TempCon.define_keywords

Defines and resets instrument keywords.

def delete_keyword(self, keyword: str)

Inherited from: TempCon.delete_keyword

Delete a keyword.

Args

keyword
keyword
def exposure_finish(self) ‑> None

Inherited from: TempCon.exposure_finish

Custom commands after exposure finishes.

def exposure_start(self) ‑> None

Inherited from: TempCon.exposure_start

Custom commands before exposure starts.

def get_control_temperature(self, temperature_id: int = 0) ‑> float

Inherited from: TempCon.get_control_temperature

Get the control temperature (set point).

Args

temperature_id
temperature sensor identifier

Returns

control_temperature
control temperature
def get_keyword(self, keyword: str) ‑> List

Inherited from: TempCon.get_keyword

Read a temperature keyword value and returns it as [value, comment, type string]

Args

keyword
name of keyword

Returns

list of [keyword, …

def get_keywords(self) ‑> list

Inherited from: TempCon.get_keywords

Return a list of all keyword names.

Returns

keywords
list of all keywords
def get_temperature(self, temperature_id: int = 0)

Reads temperatures from the tempcon controller.

Args

temperature_id
temperature ID number

Returns

temperature
temperature read
def get_temperatures(self) ‑> List[float]

Inherited from: TempCon.get_temperatures

Return all system temperatures.

Returns

temperatures
list of temperatures read
def initialize(self)

Initialize CryoConM24TemperatureControl temperature controller.

def read_header(self) ‑> list

Inherited from: TempCon.read_header

Reads and returns current header data.

Returns

list of header lines
[Header[]]: Each element Header[i] contains the sublist (keyword, value, …
def reset(self) ‑> None

Inherited from: TempCon.reset

Reset tempcon tool.

def set_calibrations(self, cals: List[int]) ‑> None

Inherited from: TempCon.set_calibrations

Set calibration curves for temperature sensors. The values of these flags are from the list below which define the calibration curves to use for each …

def set_control_temperature(self, temperature: float = None, temperature_id: int = 0)

Set control temperature in Celsius.

Args

temperature
temperature to set
temperature_id
temperature ID number * 0 is TempA * 1 is TempB
def set_corrections(self, temperature_offsets: List[float] = None, temperature_scales: List[float] = None) ‑> None

Inherited from: TempCon.set_corrections

Set temperature correction values and enable correction. If both parameters are None then correction is disabled.

Args

temperature_offsets
list …
def set_keyword(self, keyword: str, value: Any, comment: str = 'none', typestring: str = 'none')

Inherited from: TempCon.set_keyword

Set a keyword value, comment, and type.

Args

keyword
keyword
value
value of keyword
comment
comment string
typestring
one of …
def update_header(self)

Inherited from: TempCon.update_header

Update the header, reading current data. Deletes all keywords if the object is not enabled.

class TempconServerInterface (host: str, port: int, name: str)

Communicates with the CryoCon Model 24 builtin temperature server using a socket.

Methods

def close(self)

Close an open socket connection to an server.

def command(self, command: str)

Communicate with the remote server. Sends and command and returns reply. Returns the exact reply from the server.

Args

command
command string to send.

Returns

reply
commands reply
def open(self)

Open a socket connection to an server. Creates the socket and makes a connection.