Skip to content

Python Rigol DS1054Z and DG800/DG900 control and measurement classes

Notifications You must be signed in to change notification settings

lumascet/pyrigol

Repository files navigation

Python Rigol control and measurement classes

Supported Devices

DS1000 class

Ported to work for python 3.10+. See test_ds.py for an example file.

Credits

Programming Guide

DG900 class

Should support all DG8xx and DG9xx like I used DG992 to test the script, as they are based on the same Hardware. You can connect a cheap USB/LAN adapter to connect via your local network. The USB input should also work.

Added class to apply basic waveforms via the python script. Some advanced features like sync or custom waveforms are still not done yet. See test_dg.py for an example file.

Programming Guide

Installation

Install required pip packages

 python3 -m pip install -r requirements.txt

and then just run

 python3 test_ds.py

or

 python3 test_dg.py

Combined and automated measurements

See test_combined_bode.py for a automated bode plot measurement of electric circuits.

Below you can see the bode plots between a modeled low pass filter (blue) and the real measured LPF(R=1MOhm, C=100nF) (orange). The output voltage from the current generator has dropped due to the input impedance of the oscilloscope(1MOhm), resulting in half the measured voltage.

Below you can see a direct Bode Measurement without DUT. So only the Bandwith of both, the signal generator as well as the oscilloscope were observed. As specified, they have the cutoff frequency at roughly 100MHz. Drawn in blue there is a reference PT1 transfer function with cutoff frequency at 100MHz. Scope and fgen were connected by a standard BNC cable with 50 Ohm termination.

Bode sweep measurement

The previous measurement has the disadvantage being really slow, a frequency sweep with a combined waveform capture can greatly inprove the bode plot speed and resolution. TODO: Gain and phase diff calculation.

See test_combined_bode_sweep.py

About

Python Rigol DS1054Z and DG800/DG900 control and measurement classes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages