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 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.

Files for py2700, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size py2700-0.0.1-py3-none-any.whl (9.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size py2700-0.0.1.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page