From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDM/TDMS Java Interface?

Solved!
Go to solution

Hello there, has anyone developed an interface in Java that can read TDM and TDMS files?  From all the googling and poking around on NI's site, my gut feeling is no, but I just wanted to ask anyway just to be sure. I see there is a Java Header Writer (http://zone.ni.com/devzone/cda/epd/p/id/6280), existing questions about external interfaces (http://digital.ni.com/public.nsf/allkb/A3663DE39D6A2C5A86257204005C11CA), and pre-existing C and Excel readers, but I can't see any mention of a Java API for reading these files.

 

If there isn't, I'm just looking for a confirmation that there isn't, and whether or not one might be developed in the future.  If there isn't, how are other people solving this problem?  Using JNI with the C library to get TDM(S) data into Java apps?  

 

Thank you kindly for your support.

 

Derek

 

PS: I didn't know where to post this as I did not see a separate TDM category. Thanks.

 

0 Kudos
Message 1 of 5
(7,297 Views)
Solution
Accepted by topic author Derek256

Here is a post of "TDM Header Writer Java API":

http://zone.ni.com/devzone/cda/epd/p/id/6280

 

If there's no available API for reading, then it seems you have to make your own API based on the file formats, for TDMS, the file format structure is here:

http://zone.ni.com/devzone/cda/tut/p/id/5696

 

Message Edited by YongqingYe on 12-06-2009 07:55 PM
0 Kudos
Message 2 of 5
(7,263 Views)

Hello Derek,

 

You should be able to call the TDMS C DLL in your Java application.


See here

http://www.nag.co.uk/industryArticles/CallingCLibraryRoutinesfromJava.pdf

Andy Chang
National Instruments
LabVIEW Control Design and Simulation
0 Kudos
Message 3 of 5
(7,242 Views)
Thanks to you both for responding.  This information is essentially what I was looking for, that a Java API for reading does not exist and what options I have for proceeding.  I'll either have to write my own Java reader, or call the C libraries from Java.  Thanks!
Message Edited by Derek256 on 12-07-2009 01:17 PM
0 Kudos
Message 4 of 5
(7,231 Views)

Hi,

 

Is the situation still same in 2018 ?. We still have no Java API/library to read .TDMS file.

 

I am looking for a library which can read the .TDMS file for automating the test results.

0 Kudos
Message 5 of 5
(4,136 Views)