Rank: 482119 based on 0 downloads (last 30 days) and 0 file submitted
photo

Hari Patel

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Hari Patel View all
Updated File Comments Rating
13 Jul 2012 ConvertTDMS (v9) Import a LabView TDMS file into the MATLAB workspace Author: Robert

Hi Robert,

I tried your code for extracting data from the structure and It return me 533 data set as follows:

Data set 1 is Root and contains 0 samples.

Data set 2 is 07/11/2012 03:01:59 PM - Digital Input - All Data and contains 0 samples.

Data set 3 is 07/11/2012 03:01:59 PM - Digital Input - All Data/Dev1_port0_line0 - line 0 and contains 20159997 samples.

Data set 4 is 07/11/2012 03:01:59 PM - Digital Input - All Data/Dev1_port0_line0 and contains 0 samples.

Data set 5 is 07/11/2012 03:01:59 PM - Digital Input - Decimated Data_Level1 and contains 0 samples.

Data set 6 is 07/11/2012 03:01:59 PM - Digital Input - Decimated Data_Level1/Dev1_port0_line0 and contains 0 samples.

Data set 7 is 07/11/2012 03:01:59 PM - Digital Input - Decimated Data_Level2 and contains 0 samples.

Data set 8 is 07/11/2012 03:01:59 PM - Digital Input - Decimated Data_Level2/Dev1_port0_line0 and contains 0 samples.

Data set 9 is 07/11/2012 03:01:59 PM - Digital Input - Decimated Data_Level3 and contains 0 samples.

Data set 10 is 07/11/2012 03:01:59 PM - Digital Input - Decimated Data_Level3/Dev1_port0_line0 and contain

whos
Name Size Bytes Class Attributes

ChanNameOfInterest 1x1 8 double
ConvertedData 1x1 2147483647 struct
x 1x1 8 double

The number of samples is correct but I still don't know how to read actual measured data. What I want to do is to convert these structure of data into matrix, So I can do post signal processing on the actual data.

Thank you

13 Jul 2012 Convert TDMS (v2) Import a TDMS v2 file as a matlab object (ob). Author: Grant Lohsen

I tried to read .tdms file(300MB) generated by LabVIEW SignalExpress and I got following error:

10:09:05 Begining conversion of: C:\work\Matlab workspace\Signal Express data\07112012_030159_PM\convertTDMS (1)\Digital_Input.tdms
??? Error using ==> fread
Invalid precision.

Error in ==> convertTDMS at 257
propsValue=fread(fid,1,matType);

Any suggestions?

13 Jul 2012 TDMS Reader Read TDMS files v1 & v2 without DLL Current Version: 2.5 Author: Jim Hokanson

I tried to read .tdms file with what you have in readMe.txt and I got following error:
>> filename = 'Digital_Input.tdms';
>> my_tdms_struct = TDMS_getStruct(filename)
data = TDMS_readTDMSFile ('Digital_input.tdms')

??? Undefined function or method 'TDMS_handleGetDataOption' for input arguments of type
'struct'.

Error in ==> TDMS_readTDMSFile at 213
TDMS_handleGetDataOption('check',paramsStruct)

Error in ==> TDMS_getStruct at 57
[temp,metaStruct] = TDMS_readTDMSFile(filePath,readOptions{:});

??? Undefined function or method 'TDMS_handleGetDataOption' for input arguments of type
'struct'.

Error in ==> TDMS_readTDMSFile at 213
TDMS_handleGetDataOption('check',paramsStruct)

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

I am able to read a file in the MATLAB but it only returns me following :

FileName: 'Digital_Input.tdms'
FileFolder: ''
SegTDMSVerNum: [190x1 double]
NumOfSegments: 190
Data: [1x1 struct]

It also generates .mat file corrosponding to the .tdms file. However, none of these values contain the actual measurement data.

Does this code allows to extract actual measurement data.

Contact us