Skip to main content

Library to control a Saleae

Project description

Build Status Documentation Status

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


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

Uploaded Source

Built Distribution

saleae-0.8.1-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: saleae-0.8.1.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for saleae-0.8.1.tar.gz
Algorithm Hash digest
SHA256 e9287a77171b478ca0bc5638b13fb2fac9736d876cef904793809d0f57b8b74c
MD5 eb75e814ddff1fc47ffac892720d7894
BLAKE2b-256 b8a26edeb1d19520c2e49473879a1d57a3281aa5a7b0d4762cb5bd21a5283c90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for saleae-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c06b5ccf0442f9ebd874a4fca6f85273dd1b316d5315199a16605d824899ad4b
MD5 fcfa8ebfa4deb39065d176cda79f8438
BLAKE2b-256 2e22a5476d65959e706be696d286ad4a9c68aeda993ef4a6fae2fc950b5f188a

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