This is about a script I use to gather and decode serial data from my Tektronix TDS2014B (two channel) Digital Oscilloscope. The oscilloscope is connected to gather TWI, SPI or RS232 data and the script acquires and decodes to a human readable format.
The output provided is:
- ASCII decode on command line
- CSV file to check on Excel or any other compatible tool
- Recently added VCD format to use with GTKWave
This is a command line tool, without any GUI. Use GTKWave for display waveforms. Originally placed on BitBucket as a Mercurial Repo, now converted to git.
This is the development repository of the script with all sources needed to run or modify the tool. In addition the modules of this script were developed with TDD methodology.
Check repo for latest version
NA Yet
- Prerequisites
- Summary of set up
See Dependencies below.
Go ahead and try:
$ git clone git@github.com:0caliber/tds3012b.git
This will clone this repository to tds3012 folder in your system.
Example Command Line Executions:
RS232:
capture.py -b RS232 -l TTL -a 115200 -I CaptureRS232_LVCMOS.csv -n 0
TWI:
capture.py -v -b I2C -I CaptureI2C.csv
SPI:
capture.py -b SPI -l LVCMOS -s 0 --visa -I TCPIP::192.168.2.19::INSTR
The first two examples use an already captured file, while the last command shows an example of direct instrument acquisition.
You will need the following to be able to run the script.
- Python Interpreter (code is written in 2.7 generation) (https://www.python.org/downloads/ )
- VISA Libraries (Either from National Instruments NIVISA or from Tektronix TekVISA)
- PyVISA module PyVISA
License: This code is licensed under the MIT License. See License file.
- Proposing functionality
- Pull back improvements
- Report issues