Skip to main content

A helper library to control LabJack T-series devices

Project description

labjack-controller

PyPI version Build Status Documentation Status DOI status

An Easy Python Wrapper for LJM to Just Take Data Already

This is a package designed to make streaming data from LabJack T-series devices easy.

Device Compatibility

  • T7 and T7 Pro
  • T4

Requirements

  • Python 3.5+
  • LJM

All other requirements will be automatically acquired by pip; see requirements.txt for a complete list of all requirements that will be automatically obtained.

Installation

You can install this package with pip through our PyPi package with the command

pip install labjackcontroller

Alternatively, since we use pbr in setup.py, you can install from this github repository with

git clone https://github.com/university-of-southern-maine-physics/labjack-controller.git
cd labjack-controller
pip install .

Sample Usage

Multiple demonstrations of library functions are located in the demos folder, and you can read the library documentation here. However, getting started with full streaming is as easy as

from labjackcontroller.labtools import LabjackReader

duration = 10  # seconds
frequency = 100  # sampling rate in Hz
channels = ["AIN0"]  # read Analog Input Channel 0
voltages = [10.0] # i.e. input voltages in range -10 to +10 volts

# Instantiate a LabjackReader
with LabjackReader("T7") as my_lj:
    my_lj.collect_data(channels, voltages, duration, frequency)

    # Get all data recorded as a 2D Numpy array
    my_data = my_lj.to_array()

How To Get Help (or Help Us)

If you found a bug, have a question, or otherwise need to contact us, please read this.

If you want to help us in the development process, or have an idea, read this.

Contributors

Special Thanks

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

labjackcontroller-0.4.2.dev2.tar.gz (3.6 MB view details)

Uploaded Source

File details

Details for the file labjackcontroller-0.4.2.dev2.tar.gz.

File metadata

  • Download URL: labjackcontroller-0.4.2.dev2.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for labjackcontroller-0.4.2.dev2.tar.gz
Algorithm Hash digest
SHA256 e20fa50910d193416b7e81fe3f006ba0cdaa42161807ee4d28f7b2bc55e38920
MD5 9b5ead53149c55c82c8f7e0e57acca1a
BLAKE2b-256 21b0f508f7fc228a772c996f45a6e67a47c4cd88b92f42eb1e5d392e7f0ffe10

See more details on using hashes here.

Supported by

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