ws calibration program and gui
play

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


  1. WS Calibration Program and GUI in python 18/11/2014 Carolina Bianchini BE-BI-BL

  2. Outline Wire scanner calibration Old vs New method GUI: Interface Elements Behind the code How to use the GUI to generate Calibration Executable file Compare Calibration for WS in PSB Conclusions 2 11/08/2014 Carolina Bianchini 18/11/2014

  3. Wirescanner calibration PS Wirescanner Wire Scanners calibration is needed to correlate the potentiometer values with the projected position of the beam. 3 11/08/2014 Carolina Bianchini 18/11/2014

  4. Wirescanner calibration The measurement are taken in fixed range with 1mm step. Three scans are performed at each position and each scan is saved into an xml file. PSB PS Wirescanner Splitter Laser Combiner Photodiode 4 11/08/2014 Carolina Bianchini 18/11/2014

  5. Old method vs New method Old Method Calculate Searching the average the point for the first Calculate Apply the Calculate where the xml file and second the average polynomial the table change is ≥ couple of between the fit (2 nd order) (without the reading 40% points two peaks on the curve extension) (peaks (4 points) position) 5 11/08/2014 Carolina Bianchini 18/11/2014

  6. Old method vs New method Old Method Calculate Searching the average the point for the first Calculate Apply the Calculate where the xml file and second the average polynomial the table change is ≥ couple of between the fit (2 nd order) (without the reading 40% points two peaks on the curve extension) (peaks (4 points) position) 6 11/08/2014 Carolina Bianchini 18/11/2014

  7. Normal method vs New method New Method Find two window Apply the Move around the Apply the smooth Calculate Apply the threshold to peaks and Calculate “filter” to smooth average polynomial Read xml find the four apply the the Table “filter” to fit (8 th reduce the between file points gaussian (with the reduce the electrical the two order) on relative to fit, than extension) noise noise on peaks the curve the peaks take the the peaks center parameter 7 11/08/2014 Carolina Bianchini 18/11/2014

  8. WS PSB VERTICAL 0.16 0.4 129615 10IN 129614 10IN 0.14 0.35 0.052927 0.192253 0.12 0.3 0.1 0.25 0.08 0.2 0.06 0.15 0.04 0.1 0.02 0.05 0 0 31000 32000 33000 34000 35000 36000 31000 32000 33000 34000 35000 36000 |c1-c2| 0.14 0.25 129621 10IN 129620 10IN 0.12 0.2 0.05748 0.1 0.058156 0.15 0.08 0.06 0.1 0.04 0.05 0.02 0 0 31000 32000 33000 34000 35000 36000 31000 32000 33000 34000 35000 36000 8 11/08/2014 Carolina Bianchini 18/11/2014

  9. WS PSB HORIZONTAL 0.16 0.35 129622 10IN 129619 10IN 0.14 0.3 0.041264 0.136221 0.12 0.25 0.1 0.2 0.08 0.06 0.15 0.04 0.1 0.02 0.05 0 30000 31000 32000 33000 34000 35000 0 31000 32000 33000 34000 35000 36000 |c1-c2| 0.0000016 0.25 129618 10IN 129617 10IN 0.0000014 0.0000009503 0.2 0.0000012 0.122571 0.0000010 0.15 0.0000008 0.1 0.0000006 0.0000004 0.05 0.0000002 0.0000000 0 31000 32000 33000 34000 35000 36000 31000 32000 33000 34000 35000 36000 9 11/08/2014 Carolina Bianchini 18/11/2014

  10. Program Calibration in python 4.Generate the Calibration 3.Data Table and Processing: write the choose the Calibration best 2.Find the Table in .clt polynomial fit peaks value file order and calculate the average value between 1. Select them (at each the position by the Calibration relative .xml Folder file). 10 11/08/2014 Carolina Bianchini 18/11/2014

  11. GUI: Interface Elements Here is possible to choose the speed and type of movement to plot 11 11/08/2014 Carolina Bianchini 18/11/2014

  12. GUI: Interface Elements User can select the type of WS, because in the PBS case, the calibration file require the extension 12 11/08/2014 Carolina Bianchini 18/11/2014

  13. GUI: Interface Elements You can plot one data file on top of the other to compare it automatically User can delete the out- layer (y) 13 11/08/2014 Carolina Bianchini 18/11/2014

  14. GUI: Interface Elements 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 14 11/08/2014 Carolina Bianchini 18/11/2014

  15. GUI: Interface Elements Pushing this button, the calibration table in the .clt file for the movement and speed selected will be generated 15 11/08/2014 Carolina Bianchini 18/11/2014

  16. Graphical User Interface in Python RMS between real value and the polynomial fit value 16 11/08/2014 Carolina Bianchini 18/11/2014

  17. Graphical User Interface in Python Average value between real one and the polynomial fit one 17 11/08/2014 Carolina Bianchini 18/11/2014

  18. Graphical User Interface in Python Average peaks distance 18 11/08/2014 Carolina Bianchini 18/11/2014

  19. Graphical User Interface in Python RMS between peaks distance and the real one (≈2.85 mm) 19 11/08/2014 Carolina Bianchini 18/11/2014

  20. Behind the code • Error bar • PSB extension 20 11/08/2014 Carolina Bianchini 18/11/2014

  21. GUI Error Bar 21 11/08/2014 Carolina Bianchini 18/11/2014

  22. GUI Error Bar We take the average of these points in order to find the laser position scan1 scan2 scan3 Potentiometer (bit) 22 11/08/2014 Carolina Bianchini 18/11/2014

  23. Extension of the Calibration Curve Linear Curve Extension 23 11/08/2014 Carolina Bianchini 18/11/2014

  24. Extension of the Calibration Curve We have a theoretical curve for the WS in the PSB. Theory Curve Theory Curve Extension Linear Curve Extension We are in this region! 24 11/08/2014 Carolina Bianchini 18/11/2014

  25. Extension of the Calibration Curve The extension procedure calculate all the steps between one point and the next one in the Theoretical curve. Then I have: -Theoretical curve (position vs potentiometer) -Theoretical curve steps. 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 order to arrive at 50 and -50. 30 -30 25 11/08/2014 Carolina Bianchini 18/11/2014

  26. How to use the GUI for generate Calibration 26 11/08/2014 Carolina Bianchini 18/11/2014

  27. How to use the GUI for generate Calibration Select the folder, wire scanner and date of measurement Select accelerator Run the calibration At each movement (IN, HOME) and speed (10, 15) • Flag clean and delete the point out of range • Choose the polynomial order to fit the data, looking at errors • Generate the calibration table 11/08/2014 Carolina Bianchini 18/11/2014

  28. How to use the GUI for generate Calibration 28 11/08/2014 Carolina Bianchini 18/11/2014

  29. Executable file 29 11/08/2014 Carolina Bianchini 18/11/2014

  30. Executable file dist build Program’s output • Calibration Tables Input file • Theoretical Steps 30 11/08/2014 Carolina Bianchini 18/11/2014

  31. Development of Compare Calibration Program (python) 11/08/2014 Carolina Bianchini 18/11/2014

  32. Development of Compare Calibration Program (python) 11/08/2014 Carolina Bianchini 18/11/2014

  33. Development of Compare Calibration Program (python) 11/08/2014 Carolina Bianchini 18/11/2014

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend