LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Analyzing a .TDMS file

Solved!
Go to solution

The Excel TDM add-in is installed by default with LabVIEW but it's also available as a free download to make exchanging data between engineers a little easier.

 

http://zone.ni.com/devzone/cda/epd/p/id/2944

 

 

0 Kudos
Message 11 of 17
(2,021 Views)

@sam.ferguson wrote:

So, bear with me Dennis, I use the Read TDMS.vi to open up the file and then from there read the data into arrays? Is that what you are suggesting?


Try this code.

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
Message 12 of 17
(1,993 Views)

Thanks Charles, I'll give that a shot.  Also YongqingYe I used the .vi from this post to convert the .tdms programmatically: http://forums.ni.com/t5/LabVIEW/Convert-Import-TDMS-to-Excel/td-p/1088746

0 Kudos
Message 13 of 17
(1,969 Views)

Charles, that .vi works great! Any idea how I can turn this into a batch process for several files?

0 Kudos
Message 14 of 17
(1,960 Views)
Solution
Accepted by sam.ferguson

@sam.ferguson wrote:

Charles, that .vi works great! Any idea how I can turn this into a batch process for several files?


Make the VI that I sent you a SubVI (connect the path, min, max and mean to the connector pane). Write code to return an array of files, put the SubVI in a for loop and run it. See attached for getting started.

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 15 of 17
(1,953 Views)

Wow, very helpful.  Thanks again.

0 Kudos
Message 16 of 17
(1,950 Views)

I see. Thank you, sam.ferguson.

 

In LV 2013, there's a new feature to write Excel .xlsx files by using Write to Measurement File Express VI, just for your information.

0 Kudos
Message 17 of 17
(1,926 Views)