Skip to main content

PyPi Release

MercuryITC driver

About

This is a purely python based driver to remotely control the Oxford Mercury iTC cryogenic environment controller http://www.oxford-instruments.com/.

This driver is requires pyvisa-py but can be easily modified to use another interface.

This driver supports the aux, heater and temperature, and gasflow modules. Look at the class docstrings to see all the implemented commands (which is almost all).

How to use

The core of this module is the class MercuryITC. To initialize a driver object, just create an instance of this class with the device's visa address, e. g.:

>>> from mercuryitc import MercuryITC
>>> m = MercuryITC('TCPIP0:172.20.91.43:7020:SOCKET')

All the instrument attributes can be accessed through instance attributes, e.g.:

>>> print(m.serl)

All MercuryITC modules are automatically recognized and added to the modules attribute:

>>> print(m.modules)

Values can be read from and written to the instrument in the same way as for main models:

>>> htr = m.modules[0]
>>> print(htr.nick)
>>> htr.nick = 'Main heater'
>>> print(htr.nick)

There exists a special kind of attributes called signals in the MercuryITC manual. These contain a numeric value as well as a unit. Signals are read and set as tuples, e.g.:

>>> print(htr.volt)
>>> htr.volt = (2.5, 'V')
>>> print(htr.volt)

Note that all attributes which are not signals are cached and retrieved only once from the device. They are stored and read from memory afterwards. To remove these variables from memory for whatever reason, simply call the destructor:

>>> del m.serl

It's also possible to empty the entire cache of an object by calling the clear_cache method:

>>> m.clear_cache()

Installation

Download or clone the repository. Install the package by running

$ pip install /path/to/folder

where "/path/to/folder" is the path to the folder containing setup.py.

To fix

  • MercuryITC: USER and PASS property not implemented
  • Add support for level meter module

Release files for mercuryitc 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mercuryitc 0.3.0
File Size Uploaded
mercuryitc-0.3.0.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mercuryitc 0.3.0
File Interpreter ABI Platform
mercuryitc-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.0 kB

Release files / mercuryitc-0.3.0.tar.gz

Download URL mercuryitc-0.3.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bfabae9e5fe639593651a713958c88bd912323aba6c4e3581308759427057b83
BLAKE2b-256 checksum
How to use checksums
db7aa5915197d5d3bf0a598cb841b6e591b49f619af0745b6255dd5cb7324d1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.2 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

Release files / mercuryitc-0.3.0-py3-none-any.whl

Download URL mercuryitc-0.3.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe6af70696fc1eb4b13b07fc31e6c8192fceb42bfbbd0dd6f7083c93a713a88a
BLAKE2b-256 checksum
How to use checksums
9840b76bd4b35b49c6759cbd55198d9d62d7ad7fa7be2905c543fa5e74d7743d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.2 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page