开发者

Read/Write LabView TDMS files in python under linux

Does anyone know of a way to read and write the National Instruments binary file type (TDMS开发者_如何学JAVA) in python under linux? I know that NI has a C DLL available, but I don't know how to access that through python, or if I even can do so under linux.


It looks like TDMS isn't directly supported under Linux (see here).

Your options currently are to use the G-based functions directly in LabVIEW (It's possible that you can wrap them in a .so file), calling LabVIEW from Python, or building your own file parser from the TDMS spec.

Sorry, no really easy options.

Edit: It looks like there may be an open source project to try to do this at http://sourceforge.net/projects/pytdms/. Worth a try, at least.


You have to install the python version 2.7 (thats the only one that is working with the tdms package for labview atleast)

Sudo pip install npTDMS

Link to the tdms package page

and just follow the example on the page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜