WS Calibration Program and GUI in python
18/11/2014
Carolina Bianchini BE-BI-BL
WS Calibration Program and GUI in python 18/11/2014 Carolina - - PowerPoint PPT Presentation
WS Calibration Program and GUI in python 18/11/2014 Carolina Bianchini BE-BI-BL Outline Wire scanner calibration Old vs New method GUI: Interface Elements Behind the code How to use the GUI to generate Calibration Executable file
Carolina Bianchini BE-BI-BL
11/08/2014 Carolina Bianchini
18/11/2014
2
11/08/2014 Carolina Bianchini
18/11/2014
3
Wire Scanners calibration is needed to correlate the potentiometer values with the projected position of the beam.
11/08/2014 Carolina Bianchini
18/11/2014
4
performed at each position and each scan is saved into an xml file. Laser Splitter Photodiode Combiner Wirescanner PSB PS
11/08/2014 Carolina Bianchini
18/11/2014
5
xml file reading Searching the point where the change is ≥ 40% (4 points) Calculate the average for the first and second couple of points (peaks position) Calculate the average between the two peaks Apply the polynomial fit (2nd order)
Calculate the table (without the extension)
11/08/2014 Carolina Bianchini
18/11/2014
6
xml file reading Searching the point where the change is ≥ 40% (4 points) Calculate the average for the first and second couple of points (peaks position) Calculate the average between the two peaks Apply the polynomial fit (2nd order)
Calculate the table (without the extension)
11/08/2014 Carolina Bianchini
18/11/2014
7
Read xml file Apply the smooth “filter” to reduce the noise Move threshold to find the four points relative to the peaks Apply the smooth “filter” to reduce the electrical noise on the peaks Find two window around the peaks and apply the gaussian fit, than take the center parameter Calculate average between the two peaks Apply the polynomial fit (8th
the curve Calculate the Table (with the extension)
11/08/2014 Carolina Bianchini
18/11/2014
8
0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 31000 32000 33000 34000 35000 36000
129614 10IN
0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 31000 32000 33000 34000 35000 36000
129615 10IN
0.192253
0.02 0.04 0.06 0.08 0.1 0.12 0.14 31000 32000 33000 34000 35000 36000
129620 10IN
0.05748
0.05 0.1 0.15 0.2 0.25 31000 32000 33000 34000 35000 36000
0.058156
129621 10IN
0.052927
11/08/2014 Carolina Bianchini
18/11/2014
0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 30000 31000 32000 33000 34000 35000
9
129622 10IN
0.041264
0.05 0.1 0.15 0.2 0.25 0.3 0.35 31000 32000 33000 34000 35000 36000
129619 10IN
0.136221
0.05 0.1 0.15 0.2 0.25 31000 32000 33000 34000 35000 36000
129617 10IN
0.122571
0.0000000 0.0000002 0.0000004 0.0000006 0.0000008 0.0000010 0.0000012 0.0000014 0.0000016 31000 32000 33000 34000 35000 36000
129618 10IN
0.0000009503
11/08/2014 Carolina Bianchini
18/11/2014
10
the Calibration Folder 2.Find the peaks value and calculate the average value between them (at each position by the relative .xml file). 3.Data Processing: choose the best polynomial fit
4.Generate the Calibration Table and write the Calibration Table in .clt file
11/08/2014 Carolina Bianchini
18/11/2014
11 Here is possible to choose the speed and type of movement to plot
11/08/2014 Carolina Bianchini
18/11/2014
12 User can select the type
case, the calibration file require the extension
11/08/2014 Carolina Bianchini
18/11/2014
13 You can plot one data file
compare it automatically User can delete the out- layer (y)
11/08/2014 Carolina Bianchini
18/11/2014
14 From the table, user can choose the best order for the polynomial fit (select the row) and pushing the button, the plots will be update with the new order
11/08/2014 Carolina Bianchini
18/11/2014
15 Pushing this button, the calibration table in the .clt file for the movement and speed selected will be generated
11/08/2014 Carolina Bianchini
18/11/2014
16
RMS between real value and the polynomial fit value
11/08/2014 Carolina Bianchini
18/11/2014
17
Average value between real
polynomial fit
11/08/2014 Carolina Bianchini
18/11/2014
18
Average peaks distance
11/08/2014 Carolina Bianchini
18/11/2014
19
RMS between peaks distance and the real
11/08/2014 Carolina Bianchini
18/11/2014
20
11/08/2014 Carolina Bianchini
18/11/2014
21
11/08/2014 Carolina Bianchini
18/11/2014
22
scan1 scan2 scan3 We take the average
laser position Potentiometer (bit)
11/08/2014 Carolina Bianchini
18/11/2014
23
Linear Curve Extension
11/08/2014 Carolina Bianchini
18/11/2014
24
We have a theoretical curve for the WS in the PSB.
Theory Curve Extension Linear Curve Extension
Theory Curve
We are in this region!
11/08/2014 Carolina Bianchini
18/11/2014
25
The extension procedure calculate all the steps between one point and the next one in the Theoretical curve. Then I have:
In order to add the extension, the program search the last point around 30 and -30 on the first array. Then with the same array-index, in the second array get the step-value and add on the last point. Following this operation with the others steps in
30
11/08/2014 Carolina Bianchini
18/11/2014
26
11/08/2014 Carolina Bianchini
18/11/2014
At each movement (IN, HOME) and speed (10, 15)
11/08/2014 Carolina Bianchini
18/11/2014
28
11/08/2014 Carolina Bianchini
18/11/2014
29
11/08/2014 Carolina Bianchini
18/11/2014
30
dist build Program’s output
Input file
11/08/2014 Carolina Bianchini
18/11/2014
11/08/2014 Carolina Bianchini
18/11/2014
11/08/2014 Carolina Bianchini
18/11/2014
11/08/2014 Carolina Bianchini
18/11/2014
34
resolution between different calibration is improved.
possible to generate the calibration table or analyse the measurement to check its goodness.
the average between different calibration on the same WS and eventually choose the calibration file with best resolution.
done after the extension on the PSB calibration tables. And the table will be saved in the folder structure performed to run the compare calibration program.
11/08/2014 Carolina Bianchini
18/11/2014
35