Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

problem vision builder 2012 with data logging

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

0 Kudos
Message 1 of 6
(4,892 Views)

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

Message 2 of 6
(4,886 Views)

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

0 Kudos
Message 3 of 6
(4,881 Views)

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

Message 4 of 6
(4,875 Views)

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

0 Kudos
Message 5 of 6
(4,836 Views)

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

Message 6 of 6
(4,831 Views)