LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a vi to convert tdm file to TDMS file?

Hello,

 

I need to convert a tdm file to a tdms file. Is there a vi available to do this. I am using labview 2009. Thanks. Manish

0 Kudos
Message 1 of 7
(3,709 Views)
0 Kudos
Message 2 of 7
(3,707 Views)

Thanks Bo. I was able to convert the tdm file to tdms. However, when I use this tdms file for data processing using another vi, it gives the following error: Error -2532 occurred at TDMS Read in Example Code revision 4.vi. Not sure what this means!! Thanks, Manish

0 Kudos
Message 3 of 7
(3,699 Views)

Manish_Keswani, could you provide .tdms file and test VI so that others in this forum could reproduce your -2532 issue?

0 Kudos
Message 4 of 7
(3,693 Views)

Hi Bo, The tdms file is too large (~ 157 MB) to upload here. I have have put a folder 'For NI-06-18-2012' in the ftp://ftp.ni.com/incoming that has all of the files (tdm file, tdms file and the vis for converting the tdm to tdms file). My Example vi for analyzing the data in tdms file is attached. The vi references a sub vi (htcrossfind), which is also enclosed. Hopefully a NI engineer will be able to access the data from ftp server and provide help. Thx. Manish

Download All
0 Kudos
Message 5 of 7
(3,682 Views)

Hi Manish,

 

I read that there is a difference between TDMS 1 and TDMS 2, this might be causing the problem, maybe the convert VI is converting the data to TDMS 1 format, and LV in earlier releases is using TDMS 2. You might want to read this document.

 

 

Regards,

steve.bm
AE | NI
0 Kudos
Message 6 of 7
(3,654 Views)

Manish_Keswani,

 

Thanks very much for providing tdms file and VI !

 

I could reproduce this -2532 issue.

 

I use TDMS File Viewer (http://zone.ni.com/reference/en-XX/help/371361E-01/glang/tdms_file_viewer/) to check your provided tdms file "filtered data TDMS file.tdms" and below is the screenshot. It shows the channel name is "FilteredSignal".

TDMSFileViewer.png

 

But your "Example Code revision 4.vi" uses "Untitled 1" as input channel name. Then the fix is simple: remove the "Untitled 1" as input channel name. See below screenshot for fixed VI.

RemoveChannelsInput.png

 

Run this VI and the below screenshot shows the result. Is it what you expected proceeding result? 🙂

TDMSPreview.png

0 Kudos
Message 7 of 7
(3,626 Views)