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

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.1.tar.gz (874.2 kB view details)

Uploaded Source

Built Distribution

siglent_scpi-1.0.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: siglent_scpi-1.0.1.tar.gz
  • Upload date:
  • Size: 874.2 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.1.tar.gz
Algorithm Hash digest
SHA256 33c2768cf56e84bb2c8ca04b531a5509acd06f5c74b43ac5efbe070b0fcc5861
MD5 143cc671d9fffa72fd27fde6dfc79fe7
BLAKE2b-256 9afeaeccea14c70923dc618bdfe2cd153d416d3c898218074dfc57df82ff5ecc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for siglent_scpi-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7d12cb6360ce0689446dc3a00479f52e6e373a041a32d4d971eb4ab256297e3
MD5 83a1d025e4208cf3e487922c5f719e32
BLAKE2b-256 600dc801e5c94a0359d1f17cdb7ac98197bfa7b960d6ee4740cfe739ecf639ea

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