Skip to main content

A Python package to interface with a Keithley 2700 multimeter

Project description

Unofficial Keithley 2700 Series DMM Interface: py2700

A Python package to interface with a Keithley 2700 digital multimeter.

Introduction

The py2700 package is designed to allow for easy access to common SCPI commands sent to the multimeter. From setting up channels, to reading data, to even writing to the display, the package allows the user to quickly and easily produce working, readable Python code to collect data from their device, and ultimately avoid being forced to pay for a license for Keithley Kickstart.

Example Program

import py2700 as DMM
import time

# Connect to a Keithley 2701 over TCP/IP
my_multimeter = DMM.Multimeter('TCPIP::192.168.69.102::1394::SOCKET')

# Set the default temperature units
my_multimeter.set_temperature_units('C')

# Set the timeout in ms
my_multimeter.set_timeout(5000)

# Set Channels 101, 102, and 103 as K-type thermocouples
my_multimeter.define_channels([101,102,103],
    DMM.MeasurementType.thermocouple('K'))

# Setup for reading: 
#   This needs to be completed after channel
#   definitions and before scanning
my_multimeter.setup_scan()

# Scan the channels, given the timestamp you want 
# for the reading
result = my_multimeter.scan(time.time_ns()/(10**9))

# Print out a CSV header for the result
print(my_multimeter.make_csv_header())

# Print out a CSV row for the result
print(result.make_csv_row())

# Safely disconnect from the multimeter
my_multimeter.disconnect()

Contact

Please submit an issue if you encounter a bug and please email any questions or requests to py2700@noahpaladino.com

Project details


Download files

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

Source Distribution

py2700-0.0.5.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

py2700-0.0.5-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file py2700-0.0.5.tar.gz.

File metadata

  • Download URL: py2700-0.0.5.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for py2700-0.0.5.tar.gz
Algorithm Hash digest
SHA256 749f22988a4622104e36b5b597a113db948417374d3b8e45d982e2ec5bac03c3
MD5 747ed46cf0f77c0e6e4f68a4b36b3417
BLAKE2b-256 f13b609c47967cadd445a4b39a2e5127f48ccc3d0fc7c8ec7984af7e04c4f5ba

See more details on using hashes here.

File details

Details for the file py2700-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: py2700-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for py2700-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dec8df11337197713260ad1b744fe8613647b3850eb2b1cfa107a21849582500
MD5 f828035f6bfd35cd6dd4352f67593987
BLAKE2b-256 d4ddaa0dd84d7efa6ba80aa677208f4d1bed68d1d3ebe9f29ac9f0bc463e6124

See more details on using hashes here.

Supported by

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