Skip to content

Quantum-Optics-LKB/ScopeInterface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Python interface for oscilloscopes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6

Languages