Hi all, Is it possible to read TDM/TDMS files with scipy ? I found a tool for Matlab http://zone.ni.com/devzone/cda/epd/p/id/5957 Nils
Hi Nils, did you get anywhere with this ? I sounds like ctypes / numpy thing ... I'm also considering to read LabView data in binary format. And it seems that while TDMS structure is documented http://zone.ni.com/devzone/cda/tut/p/id/5696 there is a paragraph saying """ This article does not describe how to decode DAQmx data. If you need to read a TDMS file with software that implements native support for TDMS (without using any components provided by National Instruments), you will __not__ be able to interpret this data. """ So I guess, the link you gave is really the only way to go ... Cheers, Sebastian Haase On Sun, Nov 28, 2010 at 8:12 PM, Nils Wagner <nwagner@iam.uni-stuttgart.de> wrote:
Hi all,
Is it possible to read TDM/TDMS files with scipy ?
I found a tool for Matlab http://zone.ni.com/devzone/cda/epd/p/id/5957
Nils
_______________________________________________ SciPy-User mailing list SciPy-User@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-user
Nils Wagner <nwagner <at> iam.uni-stuttgart.de> writes:
Hi all,
Is it possible to read TDM/TDMS files with scipy ?
I found a tool for Matlab http://zone.ni.com/devzone/cda/epd/p/id/5957
Nils
Hello Nils, I made a little tool for that: pyTDMS. http://sourceforge.net/projects/pytdms/ Hope that helps. Floris
On Wed, Jan 12, 2011 at 8:45 AM, Floris <florisje@hotmail.com> wrote:
Nils Wagner <nwagner <at> iam.uni-stuttgart.de> writes:
Hi all,
Is it possible to read TDM/TDMS files with scipy ?
I found a tool for Matlab http://zone.ni.com/devzone/cda/epd/p/id/5957
Nils
Hello Nils, I made a little tool for that: pyTDMS. http://sourceforge.net/projects/pytdms/ Hope that helps. Floris
Hi Floris, this is great news ! I hope I find time to try it out soon. - Sebastian
Sebastian Haase <seb.haase <at> gmail.com> writes:
On Wed, Jan 12, 2011 at 8:45 AM, Floris <florisje <at> hotmail.com> wrote:
Nils Wagner <nwagner <at> iam.uni-stuttgart.de> writes:
Hi all,
Is it possible to read TDM/TDMS files with scipy ?
I found a tool for Matlab http://zone.ni.com/devzone/cda/epd/p/id/5957
Nils
Hello Nils, I made a little tool for that: pyTDMS. http://sourceforge.net/projects/pytdms/ Hope that helps. Floris
Hi Floris,
this is great news ! I hope I find time to try it out soon.
- Sebastian
The file looks great but when i try to use this file i get: Traceback (most recent call last): File "<module1>", line 17, in <module> File "<module1>", line 14, in main File "pyTDMS.py", line 892, in read data = readSegment(f,sz,data) File "pyTDMS.py", line 755, in readSegment newdata = readRawData(f,leadin,newobjects,newobjectorder,filesize) File "pyTDMS.py", line 609, in readRawData n_chunks = total_chunks / chunk_size ZeroDivisionError: integer division or modulo by zero I tried to debug it but i couldn't find the source of the problem If you can please help me I'm trying for a very long time to read this files in python.
Floris <florisje <at> hotmail.com> writes:
Nils Wagner <nwagner <at> iam.uni-stuttgart.de> writes:
Hi all,
Is it possible to read TDM/TDMS files with scipy ?
I found a tool for Matlab http://zone.ni.com/devzone/cda/epd/p/id/5957
Nils
Hello Nils, I made a little tool for that: pyTDMS. http://sourceforge.net/projects/pytdms/ Hope that helps. Floris
Hi, This message is quite old but I try to use your pytdms which seems to be a great tools. However I get this error message : ==> Interleaved Traceback (most recent call last): File "test_fft.py", line 4, in <module> (ob,ra) = tdm.read("14_02_2013_10_52_12.tdms") File "/home/balem/Desktop/TANDEM/test actif rade 14022013/pyTDMS.py", line 900, in read data = readSegment(f,sz,data) File "/home/balem/Desktop/TANDEM/test actif rade 14022013/pyTDMS.py", line 762, in readSegment newdata = readRawData(f,leadin,newobjects,newobjectorder,filesize) File "/home/balem/Desktop/TANDEM/test actif rade 14022013/pyTDMS.py", line 648, in readRawData for c in channel: data[c]=[] TypeError: unhashable type: 'dict' Unfortunately I have no clue about how the tdms file is written, maybe you can help me on this ? Many thanks Kevin
Hi Kevin, IMHO, you should ask Floris, directly. http://www.florisvanvugt.com/index.html Cheers, Nils On 2/20/13, Kevin <balem@univ-brest.fr> wrote:
Floris <florisje <at> hotmail.com> writes:
Nils Wagner <nwagner <at> iam.uni-stuttgart.de> writes:
Hi all,
Is it possible to read TDM/TDMS files with scipy ?
I found a tool for Matlab http://zone.ni.com/devzone/cda/epd/p/id/5957
Nils
Hello Nils, I made a little tool for that: pyTDMS. http://sourceforge.net/projects/pytdms/ Hope that helps. Floris
Hi, This message is quite old but I try to use your pytdms which seems to be a great tools. However I get this error message :
==> Interleaved Traceback (most recent call last): File "test_fft.py", line 4, in <module> (ob,ra) = tdm.read("14_02_2013_10_52_12.tdms") File "/home/balem/Desktop/TANDEM/test actif rade 14022013/pyTDMS.py", line
900, in read data = readSegment(f,sz,data) File "/home/balem/Desktop/TANDEM/test actif rade 14022013/pyTDMS.py", line
762, in readSegment newdata = readRawData(f,leadin,newobjects,newobjectorder,filesize) File "/home/balem/Desktop/TANDEM/test actif rade 14022013/pyTDMS.py", line
648, in readRawData for c in channel: data[c]=[] TypeError: unhashable type: 'dict'
Unfortunately I have no clue about how the tdms file is written, maybe you can help me on this ? Many thanks
Kevin
_______________________________________________ SciPy-User mailing list SciPy-User@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-user
participants (6)
-
Dudi Bitran -
Floris -
Kevin -
Nils Wagner -
Nils Wagner -
Sebastian Haase