An open API service indexing awesome lists of open source software.

https://github.com/jtambasco/rigoloscilloscope

Python USB library to control Rigol DS1000z and DS2072a oscilloscopes.
https://github.com/jtambasco/rigoloscilloscope

Last synced: about 1 month ago
JSON representation

Python USB library to control Rigol DS1000z and DS2072a oscilloscopes.

Awesome Lists containing this project

README

        

# 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
* [numpy](https://github.com/numpy/numpy)
* [python-usbtmc](https://github.com/python-ivi/python-usbtmc) (only needed for Rigol DS1000z driver)
* [tqdm](https://github.com/tqdm/tqdm)

## Example
```python
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)
```