Skip to main content

Unofficial control library for SSG3021X function generators

Project description

(Unofficial) SSG3021X function generator control library

SSG3021X function generator

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)

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

pyssg3021x-tspspi-0.0.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyssg3021x_tspspi-0.0.2-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file pyssg3021x-tspspi-0.0.2.tar.gz.

File metadata

  • Download URL: pyssg3021x-tspspi-0.0.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for pyssg3021x-tspspi-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0f7ed756ca233770d7ccf0242fcc522023342e5b5b2e26d030d4c5c3549ea27d
MD5 7445935da8c668f659921e32a3599fbd
BLAKE2b-256 51e8770e83dbfcdb2e57c62f9ebe6618e23ff797fa321144e455c504cb361e2f

See more details on using hashes here.

File details

Details for the file pyssg3021x_tspspi-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pyssg3021x_tspspi-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 59ca91bf0019a0f92ec77947b28763dccc9fd96f4be3013c2bea2380be418b19
MD5 b7238711b8bfcbcdc758fb40cbb6beb8
BLAKE2b-256 462e4d1e64b72f35452b32fb06972909184413c063c47f1cb477ba1d1c8a6812

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page