开发者

Read/Write LabView TDMS files in python under linux

开发者 https://www.devze.com 2023-02-20 12:16 出处:网络
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 acces

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

精彩评论

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