08-19-2019 08:51 AM
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!
08-19-2019 10:19 AM - edited 08-19-2019 10:24 AM
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.