Skip to main content

A package to automate Siglent equipment

Project description

siglent_scpi

Use networked Siglent devices from a computer over SCPI over ethernet.

This package lets users control and read Siglent devices which are connected by ethernet through the SCPI protocol. Some highlevel functions are included, like collecting a waveform, performing its FFT, and calculating the total harmonic distortion.

With this package automated measurements can be done. Advantages of taking automated measurements are:

  • repeatability
  • timesaving
  • automated logging

The next plot shows an example experiment which has been performed with the library, showing the total harmonic distortion of a demodulated FM signal in three different scenario's. These measurements in total take about 15 minutes, while doing them manually would take several hours.

Alt text

SDS

Class to connect to a Siglent oscilloscope. Currently the class has only been tested on a SDS1202X-E oscilloscope. It connects to the oscilloscope using sockets over ethernet.

SDG

Class to connect to a Siglent signal generator. Currently the class has only been tested on a SDG1032X signal generator. It connects to the signal generator using sockets over ethernet.

Example program

The example program thd_ch1.py shows how to get a continuously updated display of the FFT spectrum of channel 1 while also calculating and showing the total harmonic distortion.

An example output of the sample program is showing the output for a 1kHz signal from a signal generator (gif, low quality).

Alt text

Installation

Installation from pypi.org in your Python environment with:

python3 -m pip install siglent_scpi

Things to be done:

  • eror checking
  • implement selection of windowing methods in SDS.fft()
  • in SDS class, get equal parameters for channel selection in different methods (now a mix of string and int). This will break API.

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

siglent_scpi-1.0.3.tar.gz (874.4 kB view details)

Uploaded Source

Built Distribution

siglent_scpi-1.0.3-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file siglent_scpi-1.0.3.tar.gz.

File metadata

  • Download URL: siglent_scpi-1.0.3.tar.gz
  • Upload date:
  • Size: 874.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for siglent_scpi-1.0.3.tar.gz
Algorithm Hash digest
SHA256 247da0dc53ca385fef1aa2f2b1f3e2e783e49be7889d71f49df46094e038eedd
MD5 45c5e4175aab9088b8adbcb6c2e3259a
BLAKE2b-256 e8bd99dde815652eca59a9ed4fcf4b555d2b089fdcbe5e21335a5edd456f0d0a

See more details on using hashes here.

File details

Details for the file siglent_scpi-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: siglent_scpi-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for siglent_scpi-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9df82caf592b220c65ca4cb2629d66186275c68ff285092ee38436b7a5f942e4
MD5 39a0a864a00da7c1810e57478a5c701b
BLAKE2b-256 b93802d2e2932e34dede09719316fc0a46bbd9c7c073a001e1badb84b40f5c91

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