(Unofficial) SSG3021X function generator control library
This is a simple (currently incomplete) implementation of the FunctionGenerator baseclass of the pylabdevs base classes for the Siglent SSG3021X function generator. It establishes a connection via Ethernet and allows currently to:
- Set and query frequency of the RF port
- Enable and disable the RF port
- Setting the power on the RF port
Installation
This package is available as PyPi package ssg3021x-tspspi:
pip install ssg3021x-tspspi
Usage
Simple example (with context management)
from ssg3021x.ssg3021x import SSG3021X
from time import sleep
with SSG3021X("198.51.100.1") as ssg:
# Ask for identification
print(ssg.identify())
# Set frequency to 200 MHz, 10 dBm output power and enable output
ssg.set_channel_frequency(0, 202e6)
ssg.set_channel_amplitude(0, 10)
ssg.set_channel_enabled(0, True)
# Query status
print(f"Frequency:\t{ssg.get_channel_frequency()}")
print(f"Amplitude:\t{ssg.get_channel_amplitude()}")
print(f"Enabled:\t{ssg.is_channel_enabled()}")
# Wait
sleep(60)
# Disable
ssg.set_channel_enabled(0, False)
Metadata
Release files for pyssg3021x-tspspi 0.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 |
|---|---|---|---|---|
| pyssg3021x-tspspi-0.0.3.tar.gz | 4.3 kB | Without provenance | Details for pyssg3021x-tspspi-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyssg3021x_tspspi-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for pyssg3021x_tspspi-0.0.3-py3-none-any.whl |
Total release size: 9.0 kB
Release files / pyssg3021x-tspspi-0.0.3.tar.gz
| Download URL | pyssg3021x-tspspi-0.0.3.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37ef2b66ed751d5e94eceb0d6270298f53e9840db4dbf7fda947bede85a60d3e
|
|
BLAKE2b-256 checksum How to use checksums |
363c875e0def737e0fb4e2a7657f9504f742920d007f08ab67a1465fe5f25b46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.13
|
Release files / pyssg3021x_tspspi-0.0.3-py3-none-any.whl
| Download URL | pyssg3021x_tspspi-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6005f10a85dedd01b617c8080e4b6b383fe27958c3eb48a46af6219ac3815ccb
|
|
BLAKE2b-256 checksum How to use checksums |
6f2231fd91fbe2b9d2bc4511305c6d84ec05b446144246f1af841514e9523af5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.13
|
Security for pyssg3021x-tspspi 0.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.