Skip to main content

Interface to Mettler Toledo balances and scales that use the Mettler Toledo Standard Interface Command Set (MT-SICS).

Project description

mettler_toledo_device_python
======================

This Python package (mettler\_toledo\_device) creates a class named
MettlerToledoDevice, which contains an instance of
serial\_device2.SerialDevice and adds methods to it to interface to
Mettler Toledo balances and scales that use the Mettler Toledo
Standard Interface Command Set (MT-SICS).

Authors::

Peter Polidoro <polidorop@janelia.hhmi.org>

License::

BSD

Example Usage::

from mettler_toledo_device import MettlerToledoDevice
dev = MettlerToledoDevice() # Automatically finds device if one available
dev = MettlerToledoDevice('/dev/ttyUSB0') # Linux
dev = MettlerToledoDevice('/dev/tty.usbmodem262471') # Mac OS X
dev = MettlerToledoDevice('COM3') # Windows
dev.get_serial_number()
1126493049
dev.get_balance_data()
['XS204', 'Excellence', '220.0090', 'g']
dev.get_weight_stable()
[-0.0082, 'g'] #if weight is stable
None #if weight is dynamic
dev.get_weight()
[-0.6800, 'g', 'S'] #if weight is stable
[-0.6800, 'g', 'D'] #if weight is dynamic
dev.zero_stable()
True #zeros if weight is stable
False #does not zero if weight is not stable
dev.zero()
'S' #zeros if weight is stable
'D' #zeros if weight is dynamic
devs = MettlerToledoDevices() # Automatically finds all available devices
dev = devs[0]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

mettler_toledo_device-1.2.zip (12.4 kB view details)

Uploaded Source

mettler_toledo_device-1.2.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file mettler_toledo_device-1.2.zip.

File metadata

File hashes

Hashes for mettler_toledo_device-1.2.zip
Algorithm Hash digest
SHA256 622b0e90c45e3bbc0e7d313779829c816bb4f430728ac395574bc31e196e9b3c
MD5 e5577de7a59715d4cbbd28167ee30f3c
BLAKE2b-256 4ffa8119987e75b43d45d34b9296fba9a872e3e3ce40b4911d71480163a3b74c

See more details on using hashes here.

File details

Details for the file mettler_toledo_device-1.2.tar.gz.

File metadata

File hashes

Hashes for mettler_toledo_device-1.2.tar.gz
Algorithm Hash digest
SHA256 4223a601ccb98bca6455f5df9ab97157e5b15c5978a2ae42d4768198a9ebef09
MD5 adc6a0ca59085c36e4f74d5ddc70a537
BLAKE2b-256 9aca447ccd00a440145dc10e7df878943e760dd2f9276be742e12f1984ab68e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page