Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.22 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.22 KB

ScopeInterface

Python interface for oscilloscopes comminicating via SCPI commands through PyVisa. USB or TCPIP or anything.

PyVisa install

You need to install PyVisa and PyVisa-py in order for this software to work on any platform !

Both can be readily pip / conda / mamba installed.

The package names are pyvisa and pyvisa-py.

Usage

If you don't know the adress of your device, you can just instantiate an object and you will get a prompt to chose between the detected devices (if any are detected):

from RigolInterface import USBScope
scope = USBScope()
scope.get_waveform(channels = [1],plot=True)
scope.close()

toto

This will yield a plot of the displayed signal:

tototo

You can also choose to directly connect to the scope through its adress:

from RigolInterface import USBScope
scope = USBScope('USB0::6833::1300::DS7F222900085::0::INSTR')  
scope.get_waveform(channels = [1],plot=True)
scope.close()

Note that if you use the TCP/IP interface, the prefix of the adress will change to reflect the interface you're using.