Rank: 692 based on 189 downloads (last 30 days) and 2 files submitted
photo

Brad Humphreys

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Brad Humphreys View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
28 May 2014 ConvertTDMS (v10) Import or convert a LabView TDMS file into the MATLAB workspace or a mat file Author: Brad Humphreys convert, daqmx, daqmxraw, tdms, labview, data import 176 39
  • 5.0
5.0 | 4 ratings
27 Jul 2012 readAdamsDataFile Imports Data Files Created by MSC Adams Author: Brad Humphreys data import 13 0
Comments and Ratings by Brad Humphreys View all
Updated File Comments Rating
02 Dec 2014 ConvertTDMS (v10) Import or convert a LabView TDMS file into the MATLAB workspace or a mat file Author: Brad Humphreys

I have updated this functions after it was pointed out that the contents of convertTDMS had got copied into the simpleConvertTDMS file. If you are using this set of files for the first time, I suggest starting with the simpleConvertTDMS function.

06 Nov 2014 ConvertTDMS (v10) Import or convert a LabView TDMS file into the MATLAB workspace or a mat file Author: Brad Humphreys

Sebastion - I have added a directory on GitHub to upload files that you are having trouble with for troubleshooting. I have also updated the readme file to describe large file handling.

31 Jul 2014 ConvertTDMS (v10) Import or convert a LabView TDMS file into the MATLAB workspace or a mat file Author: Brad Humphreys

Alan, can you email me an example file? (see my profile for my email address)

07 Jul 2014 ConvertTDMS (v10) Import or convert a LabView TDMS file into the MATLAB workspace or a mat file Author: Brad Humphreys

I have updated converter (v1.99) to address an issue with properties updating after raw data is written in a file. Use the "Get From GitHub" button above to download latest version.

27 May 2014 ConvertTDMS (v10) Import or convert a LabView TDMS file into the MATLAB workspace or a mat file Author: Brad Humphreys

Stephen - If you wrote the channel as a waveform, you can find the start time in the channel's property. For example, after running simpleConvertTdms, channelName.Property.wf_start_time will have the starting time of the waveform.

Comments and Ratings on Brad Humphreys' Files View all
Updated File Comment by Comments Rating
02 Dec 2014 ConvertTDMS (v10) Import or convert a LabView TDMS file into the MATLAB workspace or a mat file Author: Brad Humphreys Brad Humphreys

I have updated this functions after it was pointed out that the contents of convertTDMS had got copied into the simpleConvertTDMS file. If you are using this set of files for the first time, I suggest starting with the simpleConvertTDMS function.

06 Nov 2014 ConvertTDMS (v10) Import or convert a LabView TDMS file into the MATLAB workspace or a mat file Author: Brad Humphreys Brad Humphreys

Sebastion - I have added a directory on GitHub to upload files that you are having trouble with for troubleshooting. I have also updated the readme file to describe large file handling.

26 Oct 2014 ConvertTDMS (v10) Import or convert a LabView TDMS file into the MATLAB workspace or a mat file Author: Brad Humphreys Sebastian

I have Problem with larger files. I have a file with 5.000.000 lines, I can convert it if I cut it to 147.000 lines. If I cut it to e.g. 300.000 lines I get the following error:

Reference to non-existent field 'dataType'.

Error in simpleConvertTDMS>getChannelInfo (line 983)
if index.(obname).dataType==32 %Datatype is a string

Error in simpleConvertTDMS (line 324)
[channelinfo SegInfo]=getChannelInfo(fid,SegInfo,NumOfSeg);

01 Aug 2014 ConvertTDMS (v10) Import or convert a LabView TDMS file into the MATLAB workspace or a mat file Author: Brad Humphreys Jack Sharer

I need the native type (class) of the LabView data retained to support uint64 in particular. To accomplish this, I added/changed these lines near original line 1123 in convertTDMS.m:
elseif id.dataType==68
ob.(cname).data=zeros(nsamples,1);
else
ob.(cname).data=zeros(nsamples,1,LV2MatlabDataType(id.dataType));
I also changed line 1213 to
[data,cnt]=fread(fid,nvals*id.multiplier(rr),['*',matType],kTocEndian);

31 Jul 2014 ConvertTDMS (v10) Import or convert a LabView TDMS file into the MATLAB workspace or a mat file Author: Brad Humphreys Brad Humphreys

Alan, can you email me an example file? (see my profile for my email address)

Contact us