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.
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).
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.
Metadata
Release files for siglent-scpi 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| siglent_scpi-1.0.3.tar.gz | 874.4 kB | Without provenance | Details for siglent_scpi-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| siglent_scpi-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for siglent_scpi-1.0.3-py3-none-any.whl |
Total release size: 884.7 kB
Release files / siglent_scpi-1.0.3.tar.gz
| Download URL | siglent_scpi-1.0.3.tar.gz |
|---|---|
| Size | 874.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
247da0dc53ca385fef1aa2f2b1f3e2e783e49be7889d71f49df46094e038eedd
|
|
BLAKE2b-256 checksum How to use checksums |
e8bd99dde815652eca59a9ed4fcf4b555d2b089fdcbe5e21335a5edd456f0d0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.7
|
Release files / siglent_scpi-1.0.3-py3-none-any.whl
| Download URL | siglent_scpi-1.0.3-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9df82caf592b220c65ca4cb2629d66186275c68ff285092ee38436b7a5f942e4
|
|
BLAKE2b-256 checksum How to use checksums |
b93802d2e2932e34dede09719316fc0a46bbd9c7c073a001e1badb84b40f5c91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.7
|
Security for siglent-scpi 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.