Table of Contents

Current API v5 — Software ≥ 4.1

An updated API client is available for EMScope software version 4.1 and later. It extends the v4 interface with several protocol and usability improvements:

The api_v5.py and api_example_v5.py files are provided. The api_example_v5_multi_detector.py file demonstrates simultaneous PK + QP + AV measurement using parallel connections.

Required libraries: websockets, matplotlib. Python 3.8 or later is required.

For a detailed description of the underlying WebSocket protocol, refer to the WebSocket API documentation.


Legacy APIs

Software ≤ 3.13

The api.py and api_example.py files are provided for use with EMScope software versions 3.13 and earlier.

Required libraries: websockets, json. The matplotlib library is used in the example script.

API v4 — Software = 4.0

A fully redesigned API client is available for EMScope software version 4.0. It introduces a cleaner interface, automatic RBW and display range management, robust session handling, and transparent keepalive ping/pong support.

The api_v4.py and api_example_v4.py files are provided.

Required libraries: websockets, matplotlib. Python 3.8 or later is required.