06-18-2012 09:24 PM
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
06-18-2012 09:29 PM
Manish_Keswani, could you check http://zone.ni.com/reference/en-XX/help/371361H-01/glang/convert_to_tdm_tdms/ ?
06-18-2012 11:03 PM
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
06-18-2012 11:40 PM
Manish_Keswani, could you provide .tdms file and test VI so that others in this forum could reproduce your -2532 issue?
06-19-2012 01:21 AM
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
06-20-2012 06:40 PM
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,
06-26-2012 02:46 AM
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".
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.
Run this VI and the below screenshot shows the result. Is it what you expected proceeding result? 🙂