Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 796 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 796 Bytes

Rigol 1000z and 2000a drivers

Python library to control Rigol DS1000z oscilloscopes based on USB.

Tested on Arch Linux and Linux Mint using a Rigol DS1054Z and Rigol DS2072A.

Dependencies

Example

import rigol1000z

osc = rigol1000z.Rigol1000z()

# Change voltage range of channel 1 to 50mV/div.
osc[1].set_vertical_scale_V_div(50e-3)

# Stop the scope.
osc.stop()

# Take a screenshot.
osc.get_screenshot('screenshot.png', 'png')

# Capture the data sets from channels 1--4 and
# write the data sets to their own file.
for c in range(1,5):
    osc[c].get_data('raw', 'channel%i.dat' % c)