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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for saleae-0.8.2.tar.gz
Algorithm Hash digest
SHA256 5f5d55e9c1c0968b548644ff00d6e6f8997813e4094b4917892eda260aa213b9
MD5 381a3f85eb559faa9558dff9b404e96f
BLAKE2b-256 30d08a26239f9b927a4ee14c85cf907f65c8c091fed123713e9c63533c68d066

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for saleae-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 32019abc0da86550e71efaf246f2d3c9267d7caaf6463444b5f35f1161dfce77
MD5 6291f0337da5eec0f97d7f794d0bf37a
BLAKE2b-256 f6f1f6d75cc9b292a7bf4ad8327e5c2cc498715ccc326ee40122b47c97bcb3ed

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