Skip to main content

Library to control a Saleae

Project description

python-saleae
=============

|travisci| |docs|

This library implements the control protocol for the
`Saleae Logic Analyzer <https://www.saleae.com/>`__. It is based off of the
documentation and example here:
https://github.com/saleae/SaleaeSocketApi

**IMPORTANT: You must enable the 'Remote Scripting Server' in Saleae.** Click
on "Options" in the top-right, the "Developer" tab, and check "Enable scripting
socket server". This should not require a restart.

This library requires Saleae Logic 1.2.x or greater. Unfortunately there is no
way to check the version of Logic running using the scripting protocol so this
is difficult to check at runtime.

Currently, this is basically a direct mapping of API calls with some small
sanity checking and conveniences. It has not been extensively tested beyond
my immediate needs, but it also should not have any known problems.

To get a feel for how the library works and what it can do, try the built-in demo:

::

#!/usr/bin/env python3
import saleae
saleae.demo()


Issues, updates, pull requests, etc should be directed
`to github <https://github.com/ppannuto/python-saleae>`__.


Installation
------------

The easiest method is to simply use pip:

::

(sudo) pip install saleae


Usage
-----

::

import saleae
s = saleae.Saleae()
s.capture_to_file('/tmp/test.logicdata')


.. |docs| image:: https://readthedocs.org/projects/python-saleae/badge/?version=latest
:alt: Documentation Status
:scale: 100%
:target: https://python-saleae.readthedocs.org/

.. |travisci| image:: https://travis-ci.org/ppannuto/python-saleae.svg?branch=master
:alt: Build Status
:target: https://travis-ci.org/ppannuto/python-saleae

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

saleae-0.9.1.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

saleae-0.9.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file saleae-0.9.1.tar.gz.

File metadata

  • Download URL: saleae-0.9.1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for saleae-0.9.1.tar.gz
Algorithm Hash digest
SHA256 bd19226a5abe468d701ae495513e683ba5d422fa8c976cfa7a39352d7118eb3f
MD5 7d1e51438aceed85b73d25ed3e84fbfb
BLAKE2b-256 615150cd637084e45c8c0eba5bc0c1bf64f8db0d83ac764ac57c6c7efe8ae353

See more details on using hashes here.

File details

Details for the file saleae-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: saleae-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for saleae-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff469284126b169780db5cbf7ddc9b87731bfe6584d352f9dc94de7456d8a6ac
MD5 3c98722b27e5cb86236410cca057e288
BLAKE2b-256 941a5bb51aba702e874337eb2ee7cef5042df7d234720d8e788debaa7135cb6a

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