SLAC Magnetic Measurements
Date: 05-26-2017
Time: 13:16:26
 
Planar Insertion Device Analysis
--------------------------------

Data File Header:
SLAC Magnetic Measurements
Date: 05-26-2017
Time: 12:05:55
Project: LCLS
Device Type: Undulator
Data Type: 
Serial Number: L143-112000-04
DATASET Number: 5
Tuning Stage: Tuning
Run Number: 10
Measurement Type: Z Scans
Operator: 
Comment: final scan
Session first run: 10
Measurement Device x: 
Measurement Device y: SENTRON_441
Data File: s:\magdata\LCLS\Undulator\L143-112000-04\DATASET0005\Tuning\Z Scans\Run 010\bscanz.dat
Temperature (C)
L143-112000-04:--> T1 20.16 --> T2 20.13 --> T5 20.09 --> T3 20.13 --> Air 20.06 --> T4 20.07 --> RefM_1 20.08 
Axes position (m) X:0.040111 Y:0.000392
Initial Hall Probe Zero Measurements:
Vx_0i = 0.001033 V
Vy_0i = -0.003417 V
Final Hall Probe Zero Measurements:
Vx_0f = 0.001049 V
Vy_0f = -0.003412 V
Offset Correction Voff = offset+index*increment
index = 0,1...22000
Vx:offset = 0.001033 V, increment = 7.058E-10 V
Vy:offset = -0.003417 V, increment = 2.646E-10 V
Hall Probe Calibration File:
Y: c:\CVI\current_calib\Sentron_441\Sentron_441_y.ini
X: c:\cvi\current_calib\HALLx_calib_poly_fit_file.dat
Reference Magnet Measurements:
Bx_ref = 0.0000xx (T)
By_ref = 0.0000xx (T)
Magnetic Field Measurements vs Z

Analysis Parameters:
Input file directory = s:\magdata\LCLS\Undulator\L143-112000-04\DATASET0005\Tuning\Z Scans\Run 010\
Input file name = x+00000_y+000_bscanz.dat
Input file type = ZVXYBXYH
Correction required = 0
Correction, Bx multiplicative factor = 1.000000 
Correction, By multiplicative factor = 1.000000 
Correction, Bx additive constant = -0.00001000 T
Correction, By additive constant = -0.00000000 T
Correction Bxy additive file = none
Correction Bxy additive file type = CORR_ZBXY
Set field integrals required = 1 
Set value for I1X = -0.000004 Tm
Set value for I1y = -0.000005 Tm
Electron gamma = 26689.000000
Electron energy = 13.638054 Gev
Nominal undulator period = 0.030000 m
Nominal K value = 3.500000
Nominal radiation wavelength = 1.500415e-10 m
Number of undulator poles = 226
Number of end poles (used in analysis) = 4
Cell length = 3.656000 m
Nominal phase change through cell = 709.999940 rad
Save as final result = 0
Result file directory = c:\magdata\final results\
Result file name = final_results.dat
Figures close on exit = 0
Figures visible = 1

Average Undulator Temperature:
Temp = 20.127500 C

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
The Measured Fields Were Corrected:
Set I1XY Parameters:
SET_I1X = -0.000004 Tm
SET_I1Y = -0.000005 Tm
bx_add = -0.000028 T
by_add = -0.000008 T
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Bx Peak And Zero Field Summary:
Number of Poles = 0
Number of End Poles (excluded in statistics) = 0
Peak Fields: Ave = 0.000000 T, RMS = 0.000000 T
Peak Field Spacing: Ave = 0.000000 m, RMS = 0.000000 m
Zero Field Spacing: Ave = 0.000000 m, RMS = 0.000000 m
Average Undulator Period = 0.000000 m

By Peak And Zero Field Summary:
Number of Poles = 226
Number of End Poles (excluded in statistics) = 4
Peak Fields: Ave = 1.265192 T, RMS = 0.005788 T
Peak Field Spacing: Ave = 0.015000 m, RMS = 0.000057 m
Zero Field Spacing: Ave = 0.015001 m, RMS = 0.000030 m
Average Undulator Period = 0.030001 m

Hall Probe Overall Field Integrals:
Int Bx dz =   -4.0000e-06 Tm
Int Int Bx dz dz =    2.2762e-05 Tm^2
Int By dz =   -4.5000e-06 Tm
Int Int By dz dz =    1.5183e-06 Tm^2

Trajectory Exit Information:
X at exit =    3.3375e-08 m
X slope at exit =   -9.8919e-08
Y at exit =   -5.0035e-07 m
Y slope at exit =    8.7928e-08

Calculated Undulator Parameters:
Keff = 3.500708
Beff = 1.249663 T
Lambda_rad = 1.501009e-10 m

Calculated K Value At 20 C:
(Assumes Keff changes by -.05% per degree C)
Measured Average Undulator Temperature = 20.127500 C
Measured Keff = 3.500708
Calculated Keff at 20 C = 3.500931
Relative Change (Keff_20C - Keff) / Keff = 0.000064

Phase Fluctuations:
(From Slippage vs Z Fit Residuals)
Ave = -0.000000 deg, RMS = 2.792900 deg

Phase Matching Parameters:
//nom_phase_match = ideal phase at the pole after the end poles
//n_interior = num_poles - (2 * num_end_poles)
//n_between_interior = n_interior - 1
//nom_phase_match + (num_poles - (2 * num_end_poles) - 1) * pi + nom_phase_match = nom_phase_cell
//2 * nom_phase_match = nom_phase_cell - (num_poles - (2 * num_end_poles) - 1) * pi
//nom_phase_match = (nom_phase_cell - (num_poles - (2 * num_end_poles) - 1) * pi) / 2
//nom_phase = nom_phase_match + (pole_num_no_ends - 1) * pi
//Compare the phase advance through a region to the nominal phase advance to get the phase matching error.
Nominal Phase Of Cell =    4.06800e+04 deg
Number Of Poles = 226
Number Of End Poles = 4
Nominal Phase Match =    8.10000e+02 deg

Phase Matching Errors:
Entrance:
  Phase Error Of First 10 Poles After The End Poles
  Ave = -6.378749 deg, RMS = 2.146674 deg
Center:
  Phase Error Of All Poles In Undulator Center:
  Ave = -10.702920 deg, RMS = 2.865726 deg
Exit:
  Phase Error To Cell Boundary Of Last 10 Poles Before The End Poles
  Ave = -29.718619 deg, RMS = 3.198730 deg

Phase Change In Cell:
Phase Change Of Cell =   40635.541 deg
Nominal Phase Change Of Cell =   40680.000 deg
Phase Error Of Cell =     -44.459 deg

Phase Matching Corrections:
Entrance:
Correct average phase matching error through the center.
Phase error to correct at the entrance = -10.702920 deg
Phase shifter setting at the entrance = 10.702920 deg
Phase shim value at the entrance = -349.297080 deg
Exit:
Correct cell phase minus the phase matching error at the entrance.
Phase error to correct at the exit = -33.756377 deg
Phase shifter setting at the exit = 33.756377 deg
Phase shim value at the exit = -326.243623 deg

Calculated Phase Change In The Cell At 20 C:
(Relative to the nominal radiation wave)
(Assumes Keff changes by -.05% per degree C)
Measured Average Undulator Temperature = 20.127500 C
Measured Phase Change Of Cell =   40651.629 deg
Calculated Phase Change Of Cell At 20 C =   40656.085 deg
Phase Change Due To Temperature (Phase_20C - Phase) =       4.456 deg
