Skip to content

Controls Tektronix osciloscope using USBTMC, thus avoiding VISA

License

Notifications You must be signed in to change notification settings

bettachini/pyTektronixScopeUSBTMC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview
========

This package can be used to control and record data from a Tektronix scope.
Communication relies on the USBTMC GNU/Linux device driver thus avoiding the installation of VISA. 

The package is an adaptation of PyTektronixScope by Pierre Cladé based on VISA.


Installation
============

To use the USBTMC device driver GNU/Linux in Debian its permissions should be set at `/lib/udev/rules.d/40-usbtmc-permissions.rules` to

  # Devices
  KERNEL=="usbtmc/*",
  KERNEL=="usbtmc[0-9]*",
  MODE="0660", GROUP="usbtmc"
  MODE="0660", GROUP="usbtmc"

A replace-in permissions file is provided.

To install pyTekRealTimeUSBTMC, download the package and run the command:: 
  python setup.py install

Alternatively the pyTektronixScope directory can manually be moved to a location that Python can import from.

Sources can also be download on the `pyTektronixScopeUSBTMC github repository`. 


Usage
=====

  from pyTekScopeUSBTMC import TektronixScopeUSBTMC
  scope = TektronixScopeUSBTMC("/dev/usbtmc0")

  X,Y = scope.read_data_one_channel('CH2', t0 = 0, DeltaT = 1E-6, x_axis_out=True)


Version history
===============
Main changes:

* 0.1 Initial relase

About

Controls Tektronix osciloscope using USBTMC, thus avoiding VISA

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 82.8%
  • Python 17.2%