Sub pages

Python

Python logo

TiePie engineering USB oscilloscopes can work together with Python. This extends the possibilities of the TiePie engineering measuring instruments even further.

Installation for Python 2.7

  • Download and install the TiePie Package
  • Download the Instrument DLL for your instrument
  • Copy the DLL (and HEX files) to the same directory as your Python script.

Installation for Python 2.6

  • Download and install the TiePie Package
  • Download the Instrument DLL for your instrument
  • Copy the DLL (and HEX files) to the same directory as your Python script.

Installation for Python 2.5

  • Download and install the TiePie Package
  • Download the Instrument DLL for your instrument
  • Copy the DLL (and HEX files) to the same directory as your Python script.

Installation for Python 2.4

Examples

A Handyscope HS3 is used in all examples, but you can use the Python examples also with our other instruments. For a list of supported instruments see the Instrument ID's list. If you want to use e.g. a Handyscope HS4, you need to change the line which creates the TPdevice. Replace 'HS3' by the ID for your instrument. An example is shown below:

TPdevice = TiePie.Instruments.Instrument( 'HS3' ); # Handyscope HS3

To use a Handyscope HS4 replace the above by:

TPdevice = TiePie.Instruments.Instrument( 'HS4' ); # Handyscope HS4

A list with all instrument ID's can be found at the bottom of this page.

Currently there are three examples available:

  • scope_example.py
      Performs a measurement at 100kHz with a record of 1000 samples. Sensitivity is 8 Volt, Coupling is DC.
  • awg_example.py
      Enables the AWG and generates a 5 kHz sinewave for 30 seconds. Amplitude is 1 Volt, DC offset is 2 Volt, symmetry is 50%.
  • scope_awg_example.py
      Enables the AWG and performs a measurement.
  • HS4_stream_example.py
      Streaming measurements example.

Download

NameVersionDescriptionSize
Python examples4.57 KiBdownload
Python package1.5for Python 2.7195.78 KiBdownload
Python package1.5for Python 2.463.96 KiBdownload
Python package1.5for Python 2.564.28 KiBdownload
Python package1.5for Python 2.6195.78 KiBdownload

Instrument ID's