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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for saleae-0.5.1.tar.gz
Algorithm Hash digest
SHA256 66e7c508d9e233fe9960a14923dc13b420bfd8993ecca21bf47daf6a3b824dfe
MD5 f184a86bbe6e700f4f79d91d73619872
BLAKE2b-256 2c1037e66c4bdfaba67558c80ec84409b20abcbc28ab958b5b7c913137105e31

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