12-17-2015 06:15 AM
I have a test software producing data. The data is copied over night to a server.
Normally the TDMS defragement function is done by the test software before the data is copied during the night, but sometimes this does not happen.
I want to be be able to look at the TDMS file and check wether is has been defragemented. If I can't find the simple solution I will have to put a flag in the folder with the data to indicate if the defrag was completed or not. I would rather not do this if there is a simple check.
12-17-2015 07:38 AM
Okay two solutions.
First if you look in the Help >> Example Finder and search for "fragmented" you'll find an example that shows how to determine if a file is gragmented.
Or secondly you can probably look at the ratio of the size of the index, versus the size of the tdms file. The index contains only the meta data, and the tdms contains the meta data, and the actual data. So if your index is half the size of your data, you know your file is fragmented. There is probably some ratio you can consider too.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord