SLAC Magnetic Measurements
Date: 06-30-2016
Time: 11:27:13
 
Planar Insertion Device Analysis
--------------------------------

Data File Header:
SLAC Magnetic Measurements
Date: 06-21-2016
Time: 15:51:24
Project: LCLS2
Device Type: Undulator
Data Type: 
Serial Number: HXU-32
DATASET Number: 1
Tuning Stage: Fine Tuning
Run Number: 101
Measurement Type: Z Scans
Operator: 
Comment: phase matching with  temperatures and encoders; gap= 7.4 mm
Session first run: 86
Measurement Device x: 
Measurement Device y: SENTRON_463_Y
Data File: s:\magdata\LCLS2\Undulator\HXU-32\DATASET0001\Fine Tuning\Z Scans\Run 101\bscanz.dat
Temperature (C)
HXU-32:--> T1 20.04 --> T2 20.08 --> T3 20.07 --> T4 19.95 --> T5 20.03 --> T(C) 20.01 --> RefM_2 20.02 
Encoders: US_raw = 260689.00, DS_raw = 284991.00
          US(mm) = 7.3997,   DS(mm) = 7.3997
Axes position (m) X:0.094400 Y:0.000225
Initial Hall Probe Zero Measurements:
Vx_0i = 0.001561 V
Vy_0i = 0.001559 V
Final Hall Probe Zero Measurements:
Vx_0f = 0.001847 V
Vy_0f = 0.001772 V
Offset Correction Voff = offset+index*increment
index = 0,1...20499
Vx:offset = 0.001561 V, increment = 1.394E-08 V
Vy:offset = 0.001559 V, increment = 1.041E-08 V
Hall Probe Calibration File:
Y: C:\CVI\current_calib\SENTRON_463_Y\SENTRON_463_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\LCLS2\Undulator\HXU-32\DATASET0001\Fine Tuning\Z Scans\Run 101\
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.00007000 T
Correction, By additive constant = -0.00001000 T
Correction Bxy additive file = none
Correction Bxy additive file type = CORR_ZBXY
Set field integrals required = 1 
Set value for I1X = -0.000045 Tm
Set value for I1y = -0.000025 Tm
Electron gamma = 7827.790000
Electron energy = 3.999993 Gev
Nominal undulator period = 0.032000 m
Nominal K value = 3.053077
Nominal radiation wavelength = 1.478111e-09 m
Number of undulator poles = 210
Number of end poles (used in analysis) = 6
Cell length = 4.400000 m
Nominal phase change through cell = 691.150384 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

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
The Measured Fields Were Corrected:
Measurement direction correction.
Z  = - fliplr(Z_meas)
Bx = - fliplr(Bx_meas)
By = + fliplr(By_meas)
Bz = - fliplr(Bz_meas)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
The Measured Fields Were Corrected:
Set I1XY Parameters:
SET_I1XY_REQUIRED = 1.000000 
SET_I1X = -0.000045 Tm
SET_I1Y = -0.000025 Tm
bx_add = -0.000096 T
by_add = -0.000009 T
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Average Undulator Gap:
Gap =  0.00739970 m

Average Undulator Temperature:
Temp = 20.035000 C

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 = 210
Number of End Poles (excluded in statistics) = 6
Peak Fields: Ave = 1.305271 T, RMS = 0.003989 T
Peak Field Spacing: Ave = 0.016001 m, RMS = 0.000026 m
Zero Field Spacing: Ave = 0.016001 m, RMS = 0.000031 m
Average Undulator Period = 0.032001 m

Hall Probe Overall Field Integrals:
Int Bx dz =   -4.5000e-05 Tm
Int Int Bx dz dz =   -5.4600e-05 Tm^2
Int By dz =   -2.5000e-05 Tm
Int Int By dz dz =    9.5731e-06 Tm^2

Trajectory Exit Information:
X at exit =    7.1749e-07 m
X slope at exit =   -1.8737e-06
Y at exit =    4.0922e-06 m
Y slope at exit =    3.3727e-06

Calculated Undulator Parameters:
Keff = 3.738695
Beff = 1.251222 T
Lambda_rad = 2.086145e-09 m

Calculated K Value At 20 C:
(Assumes Keff changes by -.05% per degree C)
Measured Average Undulator Temperature = 20.035000 C
Measured Keff = 3.738695
Calculated Keff at 20 C = 3.738760
Relative Change (Keff_20C - Keff) / Keff = 0.000018

Phase Fluctuations:
(From Slippage vs Z Fit Residuals)
Ave = -0.000000 deg, RMS = 3.006727 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 =    3.96000e+04 deg
Number Of Poles = 210
Number Of End Poles = 6
Nominal Phase Match =    2.07000e+03 deg

Phase Matching Errors:
Entrance:
  Phase Error Of First 10 Poles After The End Poles
  Ave = -355.006742 deg, RMS = 1.561074 deg
Center:
  Phase Error Of All Poles In Undulator Center:
  Ave = -352.292726 deg, RMS = 2.999636 deg
Exit:
  Phase Error To Cell Boundary Of Last 10 Poles Before The End Poles
  Ave = -357.228112 deg, RMS = 1.823722 deg

Phase Change In Cell:
Phase Change Of Cell =   38889.722 deg
Nominal Phase Change Of Cell =   39600.000 deg
Phase Error Of Cell =    -710.278 deg

Phase Matching Corrections:
Entrance:
Correct average phase matching error through the center.
Phase error to correct at the entrance = -352.292726 deg
Phase shifter setting at the entrance = 352.292726 deg
Phase shim value at the entrance = -7.707274 deg
Exit:
Correct cell phase minus the phase matching error at the entrance.
Phase error to correct at the exit = -357.985105 deg
Phase shifter setting at the exit = 357.985105 deg
Phase shim value at the exit = -2.014895 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.035000 C
Measured Phase Change Of Cell =   54887.329 deg
Calculated Phase Change Of Cell At 20 C =   54889.010 deg
Phase Change Due To Temperature (Phase_20C - Phase) =       1.681 deg
