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.
- Host: GitHub
- URL: https://github.com/jtambasco/rigoloscilloscope
- Owner: jtambasco
- License: mit
- Created: 2017-11-02T11:54:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-02T12:39:22.000Z (about 6 years ago)
- Last Synced: 2025-03-30T21:51:14.297Z (3 months ago)
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 17
- Watchers: 1
- Forks: 17
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 rigol1000zosc = 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)
```