Library to control a Saleae
Project description
This library implements the control protocol for the Saleae Logic Analyzer. 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.
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')
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
File details
Details for the file saleae-0.6.0.tar.gz
.
File metadata
- Download URL: saleae-0.6.0.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69172298f7e048394907ee46153ba3d549c3a1ff6543e4a24549ea17febd26b2 |
|
MD5 | e32d25aa95a290b6fffdd108136db483 |
|
BLAKE2b-256 | 64d32ef09c1b1510e441e13b98a504d1da842217fa295b846ea9c8e1d19b6338 |