LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read overwritten TDMS properties

Hello,

I write a list of properties into a tdms file.

Later, some of the properties are overwritten, because the machine was paused and resumed.

When I open the tdms file with notepad++ then i can see the old and new property values.

 

But how do I read the overwritten property values in LabVIEW?

In other words: How to count and get get all historical values of a single property in a single tdms file?

 

Thank You!Read all Properties.png

0 Kudos
Message 1 of 2
(2,136 Views)

Well, I didn't know you could do that...

Unfortunately, it doesn't look like you can get the value out of the TDMS file, and indeed if you open it in DIADEM, Excel or run the Defragment VI on the file after closing it, then the Name2=B disappears.

That, I suppose, leaves you with manually parsing the file, but only before it is opened with DIADEM (which defrags the file) or is Defragmented.

Edit: Looks like perhaps that's not immediately true - not sure what it depends on. Opening the file your code generated with DIADEM didn't immediately remove the property (although it wasn't visible in the UI).

The tdms_index also contains the text you want, which might be easier to parse. Not sure if it's more likely to be rewritten though.


GCentral
0 Kudos
Message 2 of 2
(2,099 Views)