2013/02/14

fpFCT: bugfixing

After the development of this study of the filling pattern using the fast current transformer it was time to search for bugs. From a result like:


This calculation doesn't have good sense and looks like there is a bug. This only 2 groups doesn't look nice. Even worst when we execute the code under an scripting way, the result was different. And we found the error: the number of giga samples used in the calculation. We've seen a 10th factor and we found that using the scripting mode, it reads the attribute from the scope, but from the device server it uses a default initial value of 4e10.

We've been lucky that the default value wasn't the same than what was expected, or we would get crazy if some day it changes. For example if the scope samples at 20GS/s instead of 40.

After last bug search we can see results like:


There are things to review, we didn't finish completely this development. But what is true is that the scientist already have usable data for their studies.

No comments: