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
=============
|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
Release history Release notifications | RSS feed
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.10.0.tar.gz
(16.1 kB
view details)
File details
Details for the file saleae-0.10.0.tar.gz
.
File metadata
- Download URL: saleae-0.10.0.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | beea07a992f509a6a1fa7b89ba4f4dd242ad04cad0446539eedd53141050d2a0 |
|
MD5 | ce65ddb335fbaa20a337817e9b52704a |
|
BLAKE2b-256 | 8ccf382b26bd51240fe05211d28081d02735130d055882816bf9efd1ae55290b |