GithubHelp home page GithubHelp logo

samdejong86 / tektronix-oscilloscope-daq Goto Github PK

View Code? Open in Web Editor NEW
5.0 0.0 1.0 57 KB

Data aquistion software for some Tektronix oscilloscopes

C++ 97.83% C 0.92% Python 1.24%
tektronics tds3054b mdo3054 dpo4104b root-cern daq

tektronix-oscilloscope-daq's Introduction

Tektronix Oscilloscope DAQ

Description

This is a data acquisition program for Tektronics oscilloscopes. The software is written for these models:

  • TDS3054B
  • MDO3054 (untested)
  • DPO4104B (untested)

Installation

You will need to install the NI VISA software before installing the DAQ software. You can find it here.
(SL6 version here)

NI VISA installation instructions:

cd /tmp 
mkdir NiVisa
cd NiVisa
cp $NIVISALOC/NI-VISA-17.0.0.iso .
mount -o loop NI-VISA-17.0.0.iso .
./Install
umount /tmp/NiVisa

You may need these packages

     libstdc++-devel
     libstdc++.i686
     avahi-devel.x86_64

You will also need to install ROOT from cern (here) Makefiles for the different models can be found in the makefiles directory. Use the appropriate one for the 'scope your using.

Build the software using 'make'

Usage

Run tekdaq -h to get usage instructions.

Output

The software produces a ROOT file containing two branches:

MetaData:
	Contains information on the 'scope setting during this run
data:
	Contains branches with the data:
		 a vector<double> branch containing the waveform
		 a double branch containing the peak as measured by the 'scope
		 a double branch containing the horizontal bin width
		 a double branch containing the trigger timestamp in UNIX time

There is a ROOT script included for displaying the waveforms (draw.C). To use it, run .x draw.C("tek.root", ch, ev) at the ROOT prompt. ch is the channel number, ev is the event number.

While running, the software produces temporary files named filename_n.root, each containing some number of entries (set by the tekdaq -r command). If the software closes without crashing, these are merged into filename.root and deleted.

Acknowledgements

Much of the code used in this software was written by Paul Poffenberger. I adapted the code to an object oriented framework and added some more options

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.