LibTiePie SDK Python

Python logo

The Python bindings for LibTiePie provide an easy to use interface to control the instruments.

Warning: LibTiePie is succeeded by the libtiepie-hw SDK. LibTiePie is no longer maintained. The final LibTiePie information and files can be found here.
It is recommended to use the libtiepie-hw SDK for new developments.

Installation

Windows

To install the Python bindings for LibTiePie and examples on Windows:

  1. Install the Python bindings by executing pip install python-libtiepie==0.9.9
  2. Download the python-libtiepie examples.
  3. Unpack them using an extractor.
  4. Connect your USB oscilloscope.
  5. Run an example by executing e.g. python OscilloscopeBlock.py

Linux

To install the Python bindings for LibTiePie and examples on Linux:

  1. Ensure that LibTiePie is installed.
  2. Install the Python bindings by executing pip install python-libtiepie==0.9.9
  3. Download the python-libtiepie examples.
  4. Unpack them using an extractor like e.g. unzip.
  5. Connect your USB oscilloscope.
  6. Run an example by executing e.g. python OscilloscopeBlock.py

Examples

List of available example scripts:

Download python-libtiepie examples (zip)

Trouble shooting

When you get an error like one of the following errors:

tiepie@tiepie-pc:~/TiePie> python3 OscilloscopeBlock.py
Traceback (most recent call last):
  File "OscilloscopeBlock.py", line 11, in 
    import libtiepie
ImportError: dynamic module does not define module export function (PyInit_libtiepie)

Python tries to load the LibTiePie SDK as Python module.

To avoid that, make sure libtiepie.so doesn't exist in the script's directory.