Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A Python Wrapper for the usbpt104 library from Pico

Project description

Class based interface to the Pico (Omega) PT-104 RTD DAQ Module

Dependencies

  • libusbpt104 (see installation)

What is Working

  • discover units connected via USB (Ethernet untested)
  • Configure the Channels
  • Reading of measured values

What is not Working/Missing

  • Documentation
  • Configure the ethernet interface
  • Connection via ethernet
  • usage on Windows

Installation

Linux installation: 1. Install libusb104 following https://www.picotech.com/downloads/linux

Ubuntu 18.04:

sudo bash -c 'echo "deb https://labs.picotech.com/debian/ picoscope main" >/etc/apt/sources.list.d/picoscope.list'
wget -O - https://labs.picotech.com/debian/dists/picoscope/Release.gpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install libusbpt104
  1. Install this package:

    sudo pip3 install https://github.com/trombastic/Pico_PT104/archive/master.zip
    

Usage

from PT104 import PT104, Channels, DataTypes, Wires
unit = PT104()
unit.connect('AY429/026')
unit.set_channel(Channels.CHANNEL_1, DataTypes.PT100, Wires.WIRES_4)
value = unit.get_value_channel_1
if value:
    print('CH1: %1.3f'%value)
unit.disconnect()

License

The project is licensed under the _GNU General Public License v3 (GPLv3)_.

Project details


Release history Release notifications

This version

1.0.0

Download files

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

Files for pico-pt104, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size pico_pt104-1.0.0-py2-none-any.whl (5.6 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size pico_pt104-1.0.0-py2.py3-none-any.whl (5.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size pico_pt104-1.0.0.tar.gz (17.8 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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page