01-21-2015 07:48 AM
Whilst attempting to recreate someone else's issue with an empty/zero size TDMS file, I came across something I'd never seen before. Datafinder appears to delete empty TDMS files in indexed locations.
I have My Documents as one of my indexed folders, which is one of the defaults. From the Windows Explorer shell, create a new text file and rename it empty.txt. If Datafinder is indexing, it disappears after a little while. If Datafinder isn't indexing (so if I pause it), the file survives. Resume Datafinder again and it vanishes. If the file isn't 0 kB in size, Datafinder seems to leave it alone.
I can't think of a practical reason why I'd want to create an empty TDMS placeholder file, but I certainly don't think Datafinder should be doing this.
Anyone ever come across this?
01-22-2015 05:01 AM
Hi thoult,
I will try and replicate this issue. Do you find the same behaviour is exhibited for different file types or is it just .txt ?
01-22-2015 05:12 AM
Sorry, typo - create an empty text file and rename it empty.tdms.
01-23-2015 03:32 AM
Hi thoult,
I have verified that the empty tdms is deleted. A normal tdms file with have some xml data at the start of it containing data such as when it was created so if a tdms file is created normally you shouldn't experience this issue.
I would therefor expect that datafinder is identifying the file as "corrupt" and deleting it. I will look further into this to see if it's expected behaviour.
01-30-2015 05:19 AM
Hi thoult.
After verifying the behaviour it seems unlikely that this would ever happen in practise because when a tdms file is created it contains xml data when it was created etc. I however notified the engineers for this product as a precautionary measure.
01-30-2015 05:30 AM
I can't think of a reason I would really want to do it either, but it was odd behaviour nonetheless!
Thanks.
01-30-2015 10:54 AM
DataFinder does not delete any file at all - only opens files for readig access....
When following the instructions below I cannot reproduce the issue, but receive the expected result: an indexing failure!
Can you please provide addditional information regarding your software installation:
- LabVIEW version (includes DataFinder Toolkit?)
- My DataFinder version (right-click on My DataFinder tray icon -> About My DataFinder...)
- DIAdem (in case installed)
02-02-2015 04:06 AM
We replicated it using
LabVIEW 2014
DIAdem 2014
Data Finder 14.0.0f
02-02-2015 04:08 AM
LV 2013
Diadem 2012
Datafinder 3.1.1f5249 here
02-04-2015 09:32 AM
Hi Thoult,
This is due to na error with a plugin, a Corrective Action Request has been created: 514529. This is something that is being worked on by the R+D department. On every release of the product, you could see a list of fix issues, you will be able track this issue if you wish by looking number on the release notes.
This shouldn't affect your normal use of DataFinder as any tdms file with metadata or any data won't be deleted.