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.12.0.tar.gz (16.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: saleae-0.12.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for saleae-0.12.0.tar.gz
Algorithm Hash digest
SHA256 c3ea4b637d7a488d28e185857f1bfdb1835ce4eb3c64d82682c2d2ebdbf05c19
MD5 d5dc9a0b25cf19488d654d89ba222b3a
BLAKE2b-256 3a228817b6c010bff926e77a2ad3485682a49a430fa6695b9ad1b4aa0a6fd123

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