Socket API Automation Scripting

The scripting API allows users to programmatically configure our software and trigger captures.

This socket API download requires the latest Saleae beta—1.2.5. If you need to use an older version of the Saleae software, please contact us.

Version 1.2.5+ Socket Interface C# Example Application and Documentation:

https://github.com/saleae/SaleaeSocketApi

Please write support if you have any questions or feedback. The scripting interface will continue to evolve as we receive feedback from our customers.

Enable the Logic Software for Scripting

Before using Socket API, you must be using a version of the software that supports the socket server. All versions after and including 1.1.18 included the socket server, but the current documentation and sample code only applies to the latest software release.

  1. Check that you are using the most recent software release:

  2. Open Options Menu

  3. Select Preferences

  4. Open Developer Tab

  5. Check box to enable socket server

  6. Save Changes

  7. (platform specific) accept firewall changes

Third-Party Implementations

C# data logging UI:

https://github.com/quarkng/SaleaeLogger

C# logging console application:

https://github.com/DuckPaddle/LumberJack-for-Saleae

Python wrapper:

https://github.com/ppannuto/python-saleae

https://pypi.python.org/pypi/saleae

Python sample application:

https://github.com/saleae/python-saleae-cli

If you would like to share your application, feel free to send us a link to it on any repository hosting provider, and we can share that link here.

Command Line Option

For automated environments, you can launch the Logic software with a -socket command line option to cause the socket server to be enabled by default.