Coder Social home page Coder Social logo

tektronix-serial-daq-python's Introduction

Tektronix serial port DAQ

Description

DAQ software for Tektronix scope TDS 3052 scope, with RS 232 connection.

Requirements

These python libraries are required:

  • pyvisa
  • matplotlib
  • numpy

To install pyvisa with the backend, use

pip install pyvisa-py

If pyroot is installed, data will be saved to root files. If not, data will be saved as text files

You will need to be able to access serial ports on your machine. This can be done by changing the permissions on /dev/tty so that anyone chan change access them:

sudo chmod o+rw /dev/tty<port>

or by adding yourself to the 'dialout' group on your machine:

sudo usermod -a -G dialout <username>

you will have to restart for this to take effect.

Usage

alt text

usage: Read data from a Tektronix TDS 3052 oscilloscpe via an RS-232 port
       [-h] [-p PORT] [-r BAUDRATE] [-u] [--nosave] [-o FILE] [-n NEVENTS]
       [-k] [-w CH] [-l LENGTH] [-c CH] [-t TRIG_LEVEL] [-s TRIG_SLOPE]
       [--vsca1 VSCALE] [--vsca2 VSCALE] [--coupl1 COUPL] [--coupl2 COUPL]
       [--imped1 IMPED] [--imped2 IMPED] [-b HSAMP] [-pt PRETRIGGER]

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  The port to listen to
  -r BAUDRATE, --baudrate BAUDRATE
                        baud rate of port
  -u, --unlock          Unlock front panel then exit
  --nosave              Don't save data
  -o FILE, --output FILE
                        Name of data file
  -k, --keep            Keep existing scope settings, ignoring other command
                        line arguments.
  -w CH, --wave CH      Record waveform data for channel CH; specify 'a' for
                        all channels.
  -l LENGTH, --length LENGTH
                        Specify the waveform recordlength; not independent of
                        the time base. Allowed values are: 5.E2 and 1.E4
  -n NEVENTS, --nevents NEVENTS
                        Number of events to record
  -c CH, --trsrc CH     Specify the trigger channel; specify '0' for 'EXT'
  -t POLARITY TRIGLEVEL, --trlevel POLARITY TRIGLEVEL
                        Specify trigger polarity (NEG or POS) and level (in
                        volts).
  -s TRIG_SLOPE, --trslope TRIG_SLOPE
                        Specify the trigger edge slope - FALL or RISE.
  --vsca1 VSCALE        Specify vertical scale (in volts) for channel 1.
  --vsca2 VSCALE        Specify vertical scale (in volts) for channel 2.
  --coupl1 COUPL        Specify coupling for channel 1, 'AC' or 'DC'; default
                        is 'DC'.
  --coupl2 COUPL        Specify coupling for channel 2.
  --imped1 IMPED        Specify impedance for channel 1, 'FIF' or 'MEG';
                        default is 'MEG'.
  --imped2 IMPED        Specify impedance for channel 2.
  -b HSAMP, --hsamp HSAMP
                        Specify the horizontal scale (in seconds); note that
                        this can effect the sample rate.
  -pt PRETRIGGER, --pretrigger PRETRIGGER
  	  	            Specify the amount of pretrigger (percent).

tektronix-serial-daq-python's People

Contributors

samdejong86 avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.