LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS Read fails on channels of different lengths

Solved!
Go to solution

Jie,

 

Ah, that is weird, but glad you found the ultimate cause.  Just for the record, is this considered to be incorrect behavior of the TDMS routines?  (ie has a CAR been created?).  If there is a CAR can you let me know the number?

 

Thanks for looking into this and the quick turnaround.  I will try the reordering trick.

 

-Scott

 

LabVIEW ChampionLabVIEW Channel Wires

0 Kudos
Message 11 of 18
(1,433 Views)

And as you described the reordering of the channels in the read is the trick!   Great!

 

As a TDMS expert maybe you can answer the following...   Since the NI TDMS codes is released as a DLL for those Windows folks, will a similar .so or .dylib file ever be released for the linux and Mac OS folks?   It would be very very useful in trying to make TDMS as a more standard file format rather than using python code based on the public TDMS file internal description.

https://pypi.python.org/pypi/npTDMS

http://sourceforge.net/projects/pytdms/

 

Thanks again for tracking down this unexpected feature!

LabVIEW ChampionLabVIEW Channel Wires

0 Kudos
Message 12 of 18
(1,423 Views)

Thanks for your questions,sth.

 

For Linux and Mac OS, TDMS component already provided the relative library binary files. They are libtdms.so for Linux and tdms.framework for Mac OS. You can find the binary file if you install LabVIEW or TDMS component on the relative OS.

 

Jie

NI R&D 

0 Kudos
Message 13 of 18
(1,372 Views)

@emmazheng wrote:

For Linux and Mac OS, TDMS component already provided the relative library binary files. They are libtdms.so for Linux and tdms.framework for Mac OS. You can find the binary file if you install LabVIEW or TDMS component on the relative OS.

 


And without the .h header files...  Thanks. 😞

I can use gcc -framework tdms

But where is that api documented?  The internal structure yes, but not the calling sequence for the framework.

LabVIEW ChampionLabVIEW Channel Wires

0 Kudos
Message 14 of 18
(1,338 Views)

The header file is not published and there is no API document for TDMS component binary file.

 

You can use CVI TDMS Library to make your program. CVI has its own TDM streaming API for writing and reading TDMS files. Please reference the link http://www.ni.com/white-paper/5499/en/.

 

Jie

NI R&D

0 Kudos
Message 15 of 18
(1,317 Views)

You're suggesting making a wrapper, or a wrapper?  Wouldn't it be easier to just publish the header file along with the binary?

0 Kudos
Message 16 of 18
(1,288 Views)

Please share the CAR# for this issue.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 17 of 18
(1,276 Views)

@Ben wrote:

Please share the CAR# for this issue.

 

Ben


The CAR number is 571354.

LabVIEW ChampionLabVIEW Channel Wires

Message 18 of 18
(1,264 Views)