Skip to content

pklaus/PyOscilloskop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyOscilloskop

This python library/application allows to control Rigol DS1000 / DS2000 series oscilloscopes as well as the function generator DG1022.

It uses universal_usbtmc for the communication with the device. This allows to use different backends to connect to your device:

Installation

First, install universal_usbtmc

pip install https://github.com/pklaus/universal_usbtmc/archive/master.zip

Then install PyOscilloskop

pip install https://github.com/pklaus/PyOscilloskop/archive/master.zip

Depending on the backend you want to use, you may have to install additional software. Read the universal_usbtmc README file for more information.

Usage

You can either import the modules found in this Python package in your own scripts to automate control / measurements.

Or use the tools that ship with this software:

  • pyoscilloskop-cli - A CLI tool for the scopes
    Captures the current waveforms and displays them with Matplotlib and/or saves them to an image file.
  • pyoscilloskop-web - A web GUI for the scopes
    Starts a web server allowing to display waveforms in the browser.

Examples of how to use the different backends with the tools:

To run the CLI tool with the linux_kernel backend, run:

rigolCli.py --backend linux_kernel /dev/usbtmc0

To start the web server with the tcp_socket backend, connecting to the host 192.168.0.21, run:

pyoscilloskop-web --backend tcp_socket 192.168.0.21

To run the CLI tool with the python_usbtmc backend and enable debug mode, run:

rigolCli.py --backend python_usbtmc "USB::0x1ab1::0x0588::INSTR" --debug

To start the web server with the pyserial backend, using the serial device /dev/ttyUSB0 (don't forget to set your scope to 38400 baud!):

pyoscilloskop-web --backend pyserial ASRL::/dev/ttyUSB0,38400::INSTR

Author

This software started as a fork of sbrinkmann / PyOscilloskop.

  • Philipp Klaus (2012-2015)
  • Sascha Brinkmann (2011)

Resources

About

This software can control the Rigol DS1000 / DS2000 series oscilloscopes and the Rigol function generator DG1022.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published