NumPy based Python module for reading TDMS files produced by LabView
Python Shell
Latest commit 546a1d6 May 10, 2016 @adamreeve Merge pull request #47 from adamreeve/object_properties
Add group and channel properties to TdmsObject
Failed to load latest commit information.
docs Work on packaging Jun 11, 2014
nptdms
.gitignore Ignore vim .swp files Jul 12, 2015
CHANGES.txt Bump version to 0.8.0 May 10, 2016
COPYING Fix licensing files Jul 28, 2015
COPYING.LESSER Fix licensing files Jul 28, 2015
MANIFEST.in Update manifest and setup.py for documentation changes Feb 27, 2012
README.rst Update links to readthedocs documentation Apr 28, 2016
coverage.sh Add script to run nosetests with coverage Jun 12, 2014
setup.cfg Work on packaging Jun 11, 2014
setup.py Work on packaging Jun 11, 2014
wercker.yml Attempt to fix pypi upload error not being picked up by wercker Feb 12, 2016

README.rst

npTDMS

wercker status

Cross-platform module for reading TDMS files as produced by LabView. Data is stored as a numpy array, and is loaded using numpy's fromfile routine so is very fast.

Typical usage might look like:

#!/usr/bin/env python

from nptdms import TdmsFile
tdms_file = TdmsFile("path_to_file.tdms")
channel = tdms_file.object('Group', 'Channel1')
data = channel.data
time = channel.time_track()
# do stuff with data

For more information, see the npTDMS documentation.

Installation

npTDMS is available from the Python Package Index, so the easiest way to install it is by running (as root):

pip install npTDMS

Alternatively, after downloading the source code you can extract it and change into the new directory, then run:

python setup.py install

Links

Source code lives at https://github.com/adamreeve/npTDMS and any issues can be reported at https://github.com/adamreeve/npTDMS/issues. Documentation is available at http://nptdms.readthedocs.io.

What Currently Doesn't Work

This module doesn't support TDMS files with XML headers or with extended floating point data.

Files with DAQmx raw data are not supported either.

Contributors/Thanks

Thanks to Floris van Vugt who wrote the pyTDMS module, which helped when writing this module.

Thanks to Tony Perkins, Ruben De Smet, Martin Hochwallner and Peter Duncan for contributing support for converting to Pandas DataFrames.