Metadata-Version: 2.4
Name: rigol_dg1022
Version: 0.1.1
Summary: A Python driver for Rigol arbitrary signal generators
Author-email: Daniel Köpping <daniel.koepping@de.abb.com>
License-Expression: MIT
Keywords: Rigol DG1022,Rigol DG1062,Rigol DG4102,Python driver,Ethernet,USB,Signal generator,Industrial automation
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyvisa
Requires-Dist: pyusb
Dynamic: license-file

# Rigol DGx Python Driver

This package provides a Python driver for controlling Rigol DGx arbitrary waveform generators via USB or Ethernet.

Confirmed to work with **DG1022**, **DG1062**, **DG4102**.

[Rigol Programming Guide](https://www.batronix.com/pdf/Rigol/ProgrammingGuide/DG1000Z_ProgrammingGuide_EN.pdf)

## Usage

```python
from rigol_dg1022 import RigolDG

# Connect to the device
dg = RigolDG()

# Set a sine wave on Channel 1
dg.apply_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)
```

