Skip to main content

A Python driver for the Rigol DG1022 arbitrary signal generator

Project description

Rigol DG1022 Python Driver

This package provides a Python driver for controlling the Rigol DG1022 arbitrary waveform generator via USB or Ethernet.

Usage

from rigol_dg1022 import RigolDG1022

# Connect to the device
dg = RigolDG1022()

# Set a sine wave on Channel 1
dg.set_waveform(channel=1, waveform="SIN", frequency=1000, amplitude=1, offset=0)

# Turn on the output for Channel 1
dg.set_output(channel=1, state=True)

# Get the current frequency of Channel 1
freq = dg.get_frequency(channel=1)
print(f"Current frequency: {freq} Hz")

# Turn off the output
dg.set_output(channel=1, state=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

rigol_dg1022-0.0.7.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

rigol_dg1022-0.0.7-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file rigol_dg1022-0.0.7.tar.gz.

File metadata

  • Download URL: rigol_dg1022-0.0.7.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.10

File hashes

Hashes for rigol_dg1022-0.0.7.tar.gz
Algorithm Hash digest
SHA256 c3424e2c4676d2e1f472c00509a09076182be746444ff3720590cf5515975caf
MD5 baf503173d36105833855c1ca7ca6ccf
BLAKE2b-256 5046cfc7e674cb0e138c0c3ef7817c4f28799872731b726d8339f7d3fc7a170d

See more details on using hashes here.

File details

Details for the file rigol_dg1022-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: rigol_dg1022-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.10

File hashes

Hashes for rigol_dg1022-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 57b456f6e71b6210234b8017141eb9c00a8db7a9f5d1f12de8a13a7004944283
MD5 0d3ef9aa9ee4da82418559ffff62b00c
BLAKE2b-256 b878e53bdf1f019bfb78e3de5044e86c136200f47d8cc94a7f8919540b629f75

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