Rank: 2745 based on 47 downloads (last 30 days) and 2 files submitted
photo

Robert

E-mail
Company/University
BorgWarner Morse TEC

Personal Profile:

 

Watch this Author's files

 

Files Posted by Robert View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
17 May 2011 ConvertTDMS (v9) Import a LabView TDMS file into the MATLAB workspace Author: Robert borgwarner, convert, seltzer, tdms, labview, hi i cant run this ap... 35 67
  • 4.72727
4.7 | 11 ratings
01 Sep 2010 ConvertTDMS (v6) Import a LabView TDMS file into the MATLAB workspace. Author: Robert borgwarner, convert, seltzer, tdms, tdmsfilenameshort, bill 12 20
  • 4.5
4.5 | 2 ratings
Comments and Ratings by Robert View all
Updated File Comments Rating
07 Nov 2013 ConvertTDMS (v9) Import a LabView TDMS file into the MATLAB workspace Author: Robert

Brad Humpreys has leveraged off of this function to make a new and improved set of functions: http://www.mathworks.com/matlabcentral/fileexchange/44206-converttdms-v10

13 Jul 2012 ConvertTDMS (v9) Import a LabView TDMS file into the MATLAB workspace Author: Robert

Hi Hari,

Please see the comment I posted on 25 APR 2012 on how to extract your data from the structure.

Hope this helps,

Robert

23 May 2012 ConvertTDMS (v9) Import a LabView TDMS file into the MATLAB workspace Author: Robert

Hi Dedric,

I’m sorry but I won’t be any help with your problem. It’s been well over a year since I’ve processed any TDMS files so, I no longer work with this function nor track any LabView/NI changes. Perhaps some others that monitor this function may be able to help you. I know there are a few that have helped me in the past to get it to the point where it is now.

Good Luck,

Robert

25 Apr 2012 ConvertTDMS (v9) Import a LabView TDMS file into the MATLAB workspace Author: Robert

Hi Xiao,

Your data should be contained within the structure.

ConvertedData=convertTDMS(SaveFlag,FileName);

To access the data, iterate through the entries within the "ConvertedData.Data.MeasuredData" field. This field contains 4 fields: "Name" (string), "Data" (numeric), "Total_Samples" (numeric) and "Property" (structure). The data are contained within the "ConvertedData.Data.MeasuredData.Data" field. Here's one way to see all the channels and their number of samples in the Command Window and to retrieve the data for a particular channel of interest (you need to specify the "ChanNameOfInterest").

for x = 1:numel(ConvertedData.Data.MeasuredData)

fprintf('\nData set %.0f is %s and contains %.0f samples.\n',x,ConvertedData.Data.MeasuredData(x).Name,ConvertedData.Data.MeasuredData(x).Total_Samples)

if strcmpi(ChanNameOfInterest,ConvertedData.Data.MeasuredData(x).Name)
MyData=ConvertedData.Data.MeasuredData(x).Data
end

end

If this method doesn't work, then NI may have changed their file format (again). If all else fails, you should be able to find a free TDMS reader as an Excel add-in.

HTH,

Robert

17 May 2011 ConvertTDMS (v9) Import a LabView TDMS file into the MATLAB workspace Author: Robert

Thanks to Philip Top, the updated function dated 17 MAY 11 fixes a couple of bugs that arose with NI-DAQmx 9.2.3. It should post here soon. I don't know if it will help with the "out of memory" issue that Sage has encountered.

Comments and Ratings on Robert 's Files View all
Updated File Comment by Comments Rating
23 Jun 2014 ConvertTDMS (v9) Import a LabView TDMS file into the MATLAB workspace Author: Robert Tie Xue

Good code,Thanks!

07 Nov 2013 ConvertTDMS (v9) Import a LabView TDMS file into the MATLAB workspace Author: Robert Robert

Brad Humpreys has leveraged off of this function to make a new and improved set of functions: http://www.mathworks.com/matlabcentral/fileexchange/44206-converttdms-v10

31 Oct 2013 ConvertTDMS (v9) Import a LabView TDMS file into the MATLAB workspace Author: Robert Gisselle

Hi,

I am working in Signal Express 2013 v7.0.0.

I've been having difficulties converting TDMS files generated by Signal Express using this version of ConvertTDMS.

I receive an error stating "
In an assignment A(:) = B, the number of elements in A and B must be the same.

Error in convertTDMS/postProcess (line 1109) Value(c) = index.(cname).(cfield).value;

Error in convertTDMS (line 287)
[ConverteData(fnum).Data,CurrGroupNames] = postProcess(ob,channelinfo);

Any help will be great!

Thank You

11 Oct 2013 ConvertTDMS (v9) Import a LabView TDMS file into the MATLAB workspace Author: Robert Harry

@Brad:

Now, all works fine! I use a Workaround (which was already posted on 25 April) to adress the different channel names and the data inside!

11 Oct 2013 ConvertTDMS (v9) Import a LabView TDMS file into the MATLAB workspace Author: Robert Brad Humphreys

Harry,

To get to the data quickly, yu can create a an array of the channels using:

channels=ConvertedData.Data.MeasuredData;

Brad

Contact us