11-19-2013 08:20 AM
Hi at all,
I am using vbai 2012 and i have a problem with tool data logging, indeed, even if i select "overwrite any file(s) created prior....", i have always the date, the hour and the inspection status writted for each iteration, line by line. So my file increases for each passage. You can see my attachment.
Are there an option in the file visionbuilder.cfg ?
If i open a inspection created by vbai 2010 with the tool which works correctly, i have the same result, my data are not overwrite...
So this problem is only with vbai 2012.
Have you got the solution?
Thanks in advance.
Anthony.B
11-19-2013 08:43 AM
When you press the bottom run button, the iteration counter doesn't increase (as you can see by the column of zeros in your file). If you press the top run button, the iteration count does increase and on the first iteration, it will overwrite the file.
The file will be overwritten when the inspection is loaded and run for the first time in configuration mode or inspection mode, but it won't be overwritten on subsequent runs since this overwrite feature only happens on the first run after opening the inspection.
Hope this helps,
Brad
11-19-2013 09:52 AM
Hi Brad,
I come just to try something, i create a simple inspection just with a tool datalogging in the state of departure, and if I select or not the option "overwrite", I can see that the push on the button run many times, overwrite or not the file directly.
But if i do the same test with vbai 2012, i have never ma file overwritten even if i select this option...
Anthony B
11-19-2013 10:36 AM
I think we changed this behavior so if you had multiple data logging steps writing to the same file we didn't want to have subsequent writes earase the first write. So we only overwrite a file if:
1. We haven't written to the file before since opening the inspection (this allows multiple steps to write to the same file and only the first access to the file will overwrite it)
2. If the iteration count is less than it was the last time the step was called.
Hope this helps explain the new behavior.
Brad
11-22-2013 01:04 AM
Hi Brad,
So this is not a bug...
If i want to keep the old functionning, i need to create a vi which delete the file just before to create my datalogging, that's right ?
Thanks a lot for your precision.
Anthony
11-22-2013 08:18 AM
Correct. Maybe it would be helpful for me to understand how you want to use it. Are you operating in Inspection mode or Configuration mode? From your file, it looks like you are in Configuration mode...if you open it in Inspection mode, the first time, the inspection is run, the file will be overwritten. It sounds like you want it to be overwritten more than just this first time though. How often and when do you want it to be overwritten...please describe the sequence of steps you would have expected the file to be overwritten.
Thanks,
Brad