Skip to main content

A Python driver for the Rigol DG1022 Function Generator

Project description

Rigol DG1022 Python Driver

This package provides a Python driver for controlling the Rigol DG1022 Function Generator via USB.

Installation

Download the .whl file from the Releases page and install it using: pip install <filename>.whl

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)

Build package

To build the .whl, navigate to rigol_dg1022 dir and execute py -m build

Installation

Download the .whl file from the Releases page and install it using: pip install <filename>.whl

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.6.tar.gz (10.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.6-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rigol_dg1022-0.0.6.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for rigol_dg1022-0.0.6.tar.gz
Algorithm Hash digest
SHA256 3cd3e87d1339969f898a98558761c2dbdd7727275bd8eeb4bba15a7c35b72ad0
MD5 b3676a756d762ec486657f9cd0057cc2
BLAKE2b-256 5da3c190f293c6e1a655a8b5ca9c67c794fa73fd1439e3a360367e158d44c255

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rigol_dg1022-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for rigol_dg1022-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f35573015247ec4dd583515713ef776a4e6396e213ef4e39e0d7515a6e03bc76
MD5 5c891ea0b3edbd31dd66ffa3a73c57b7
BLAKE2b-256 e335ff82e13f95e6df3868b56d0df6b301392a51bb66b511e66779dcfaa071a8

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