SLAC Magnetic Measurements
Date: 11-27-2007
Time: 14:05:31
 
Planar Insertion Device Shim Analysis
-------------------------------------

Data File Header:
SLAC Magnetic Measurements
Date: 11-27-2007
Time: 13:58:48
Project: LCLS
Device Type: Undulator
Data Type: 
Serial Number: L143-112000-09
DATASET Number: 1
Tuning Stage: Rough Tuning
Run Number: 4
Measurement Type: Z Scans
Operator: aww
Comment: x=0.026508 ;  y=0.0002836  After adding 1-screw x-shims at  126, 161.
Measurement Device x: 
Measurement Device y: SENIS_24-06
Data File: s:\magdata\LCLS\Undulator\L143-112000-09\DATASET0001\Rough Tuning\Z Scans\Run 004\bscanz.dat
Temperature (C)
L143-112000-09:--> top_start 20.05 --> top_mid 20.05 --> top_end 19.96 --> bot 20.03 --> granite 19.98 --> Air 19.95 
Axes position (m) X:0.026508 Y:0.000284
Initial Hall Probe Zero Measurements:
Vx_0i = -0.000431 V
Vy_0i = -0.000443 V
Final Hall Probe Zero Measurements:
Vx_0f = -0.000390 V
Vy_0f = -0.000443 V
Offset Correction Voff = offset+index*increment
index = 0,1...19850
Vx:offset = -0.000431 V, increment = 2.053E-09 V
Vy:offset = -0.000443 V, increment = 0.000E+00 V
Hall Probe Calibration File:
Y: C:\CVI\current_calib\SENIS_24-06\SENIS_24-06_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-09\DATASET0001\Rough Tuning\Z Scans\Run 004\
Input file name = x+00000_y+000_bscanz.dat
Input file type = ZVXYBXYH
Correction required = 1
Correction, Bx multiplicative factor = 1.000000 
Correction, By multiplicative factor = 1.000000 
Correction, Bx additive constant = 0.000015 T
Correction, By additive constant = 0.000000 T
Correction Bxy additive file = S:\Magdata\Earth Field Correction\earth_field_corr.dat
Correction Bxy additive file type = CORR_ZBXY
Electron gamma = 26682.250000
Electron energy = 13.634605 Gev
Nominal undulator period = 0.030000 m
Nominal K value = 3.497737
Nominal radiation wavelength = 1.499506e-010 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
Nominal phase of pole after end poles = 14.137167 rad
Save as final result = 0
Result file directory = c:\magdata\slac_und_2\
Result file name = zscan_xn0060yp0002.dat
Figures close on exit = 0
Figures visible = 1

Trajectory Shim Parameters:
Number of segments in the segmented trajectory = 40
Maximum trajectory shift when a shim is moved =  6.000e-007 m
Maximum trajectory shift accumulation before add shim =  7.000e-007 m
X trajectory end shim pole number = 0
Y trajectory end shim pole number = 0
Experimental parameters
Let s = desired trajectory slope change (dimensionless)
Let d = distance between the shim and the pole (m)
d = p1 * s^2 + p2 * s + p3
Type < 0 shims are reserved for the end shims.
Type > 0 shims are reserved for the undulator center shims.
1)X Trajectory Shim Parameters
Type = -1
    Slope_min =  1.000e-007, Slope_max =  1.000e-005
    p1 =  0.000e+000, p2 = -2.180e+003, p3 =  0.000e+000
Type = 1
    Slope_min =  1.000e-006, Slope_max =  6.600e-006
    p1 =  4.212e+007, p2 = -3.283e+003, p3 =  2.061e-002
Type = 2
    Slope_min =  6.600e-006, Slope_max =  1.700e-005
    p1 =  4.085e+007, p2 = -1.833e+003, p3 =  1.921e-002
2)Y Trajectory Shim Parameters
Type = -1
    Slope_min =  0.000e+000, Slope_max =  1.000e+009
    p1 =  0.000e+000, p2 =  0.000e+000, p3 =  0.000e+000
Type = 1
    Slope_min =  0.000e+000, Slope_max =  1.000e+009
    p1 =  0.000e+000, p2 =  0.000e+000, p3 =  0.000e+000

Phase Shim Parameters:
Number of segments in the segmented phase error = 40
Maximum positive phase error change before a shim is added =  3.491e-002 rad
Maximum negative phase error change before a shim is added =  1.047e-001 rad
Gap shim effective width =  2.000e-001 m
Nominal undulator gap =  6.800e-003 m
Experimental parameters
Gap shim correction factor =  1.000e+000
Let c = desired phase error change (rad)
Let t = shim thickness (m)
t = p1 * c^2 + p2 * c + p3
Type = 1
    phase_change_min =  0.000e+000, phase_change_max =  2.530e-001
    p1 =  0.000e+000, p2 =  1.580e-003, p3 =  0.000e+000

K Shim Parameters:
Cant angle =  4.500e-003 rad



                          Set The Gap, Shim Data           

Same adjustments on both the upper and lower poles.   

Shim  Magnet  Del Gap    Del X    |  Shim  Magnet  Del Gap    Del X  
 #      #      (mu m)     (mm)    |   #      #      (mu m)     (mm)  
----  ------  --------  --------  |  ----  ------  --------  --------
   1       1       0.0       0.0  |    32     113      23.9       5.3
   2       2       0.0       0.0  |    33     120      17.4       3.9
   3       6      38.8       8.6  |    34     121      17.4       3.9
   4       7      38.8       8.6  |    35     128      14.2       3.2
   5      11      12.6       2.8  |    36     129      14.2       3.2
   6      12      12.6       2.8  |    37     136      20.6       4.6
   7      14      12.6       2.8  |    38     137      20.6       4.6
   8      21      29.4       6.5  |    39     145      19.1       4.2
   9      22      29.4       6.5  |    40     146      19.1       4.2
  10      29      36.5       8.1  |    41     148      19.1       4.2
  11      30      36.5       8.1  |    42     155      27.7       6.1
  12      37      24.6       5.5  |    43     156      27.7       6.1
  13      38      24.6       5.5  |    44     163      21.4       4.8
  14      45      21.8       4.8  |    45     164      21.4       4.8
  15      46      21.8       4.8  |    46     171      30.8       6.9
  16      53      21.0       4.7  |    47     172      30.8       6.9
  17      54      21.0       4.7  |    48     179      29.2       6.5
  18      61      14.4       3.2  |    49     180      29.2       6.5
  19      62      14.4       3.2  |    50     187      43.2       9.6
  20      69      20.3       4.5  |    51     188      43.2       9.6
  21      70      20.3       4.5  |    52     195      33.4       7.4
  22      78       8.3       1.8  |    53     196      33.4       7.4
  23      79       8.3       1.8  |    54     203      31.4       7.0
  24      81       8.3       1.8  |    55     204      31.4       7.0
  25      88      27.1       6.0  |    56     212      22.8       5.1
  26      90      27.1       6.0  |    57     213      22.8       5.1
  27      96      22.9       5.1  |    58     215      22.8       5.1
  28      97      22.9       5.1  |    59     219      51.3      11.4
  29     104      22.1       4.9  |    60     220      51.3      11.4
  30     105      22.1       4.9  |    61     224       0.0       0.0
  31     112      23.9       5.3  |    62     225       0.0       0.0



                          X Trajectory Shim Data                   

Same shims on both the upper and lower poles.

Shim  Pole    Z Pole    By  Delta Slope    BL Shim    Shim  Shim Dim 
 #     #       (m)      +-       ()          (Tm)     Type    (mm)   
----  ----  ----------  --  -----------  -----------  ----  ---------
   1   136      0.3375  +1  -1.770e-006  -8.051e-005     1      14.93
   2   161      0.7125  -1   2.491e-006   1.133e-004     1      12.69
   3   189      1.1324  -1   5.696e-006   2.591e-004     1       3.28
   4   202      1.3274  +1  -2.547e-006  -1.158e-004     1      12.52
   5   215      1.5224  -1   4.124e-006   1.876e-004     1       7.79
   6   222      1.6273  +1  -3.173e-006  -1.443e-004     1      10.62



              X Trajectory Shim Change Data For Pre-existing Shims  

Same shims on both the upper and lower poles.

Shim  Pole    Z Pole    By  Delta Slope  Shim  Delta Dim  Shim  Delta Dim  Shim  Delta Dim
 #     #       (m)      +-       ()      Type     (mm)    Type     (mm)    Type     (mm)  
----  ----  ----------  --  -----------  ----  ---------  ----  ---------  ----  ---------
   1   136      0.3375  +1  -1.770e-006    -1       3.86     1       5.24     2       1.54
   2   161      0.7125  -1   2.491e-006    -1       5.43     1       7.38     2       2.16
   3   189      1.1324  -1   5.696e-006    -1      12.42     1      16.88     2       4.95
   4   202      1.3274  +1  -2.547e-006    -1       5.55     1       7.55     2       2.21
   5   215      1.5224  -1   4.124e-006    -1       8.99     1      12.22     2       3.58
   6   222      1.6273  +1  -3.173e-006    -1       6.92     1       9.40     2       2.76



                            Y Trajectory Shim Data                                             


Shims on both the upper and lower magnets between the poles.
Outer steel of shim on left, inner steel on right of bottom shim.

Shim  Pole  Pole    Z Mag     By #1  By #2  Delta Slope    BL Shim    Shim  Shim Dim 
 #     #1    #2      (m)       +-     +-        ()          (Tm)      Type    (mm)   
----  ----  ----  ----------  -----  -----  -----------  -----------  ----  ---------
   1   108   109     -0.0749   +1     -1    -3.251e-006   1.478e-004     1       0.00
   2   180   181      1.0049   +1     -1    -1.357e-006   6.173e-005     1       0.00
   3   220   221      1.6049   +1     -1    -1.629e-006   7.407e-005     1       0.00



              Y Trajectory Shim Change Data For Pre-existing Shims  

Shims on both the upper and lower magnets between the poles.
Outer steel of shim on left, inner steel on right of bottom shim.

Shim  Pole  Pole  Delta Slope  Shim  Delta Dim  Shim  Delta Dim
 #     #1    #2       ()       Type     (mm)    Type     (mm)  
----  ----  ----  -----------  ----  ---------  ----  ---------
   1   108   109  -3.251e-006    -1       0.00     1       0.00
   2   180   181  -1.357e-006    -1       0.00     1       0.00
   3   220   221  -1.629e-006    -1       0.00     1       0.00



                              Phase Error Gap Shim Data                         

Same shims on both the upper and lower poles.

Shim  Pole #  Pole #  Z Start   Z End   Delta Phaserr    dB / B       dGap     dShim X
 #    Start    End      (m)      (m)    Slope (deg/m)     Shim        (mm)      (mm)  
----  ------  ------  -------  -------  -------------  -----------  --------  --------
   1      54      65   -0.892   -0.727     4.559e+001   2.210e-003    -0.013    -2.870
   2      70      81   -0.652   -0.487     5.140e+001   2.492e-003    -0.015    -3.236
   3     135     146    0.323    0.487     4.562e+001   2.211e-003    -0.013    -2.872


                             Phase Error Phase Shim Data                        

Same shims on both the upper and lower poles.

Shim  Pole #  Pole #  Z Shim   Delta Phaserr    dB / B      Shim Dim  
 #    Start    End      (m)        (deg)         Shim         (mm)    
----  ------  ------  -------  -------------  -----------  -----------
   1      20      21   -1.395    -2.313e+000  -3.738e-003     0.063792
   2      30      31   -1.245    -2.613e+000  -4.222e-003     0.072044
   3      35      36   -1.170    -2.730e+000  -4.411e-003     0.075282
   4      68      69   -0.675    -2.007e+000  -3.243e-003     0.055348
   5     176     177    0.945    -2.140e+000  -3.458e-003     0.059013
   6     181     182    1.020    -2.282e+000  -3.688e-003     0.062940
   7     187     188    1.110    -4.074e+000  -6.583e-003     0.112339
   8     191     192    1.170    -4.758e+000  -7.688e-003     0.131194
   9     193     194    1.200    -4.129e+000  -6.673e-003     0.113876
  10     197     198    1.260    -2.836e+000  -4.582e-003     0.078199
  11     219     220    1.590    -5.312e+000  -8.583e-003     0.146472



                            K Shim Data

Measured K value =   3.511509
Desired  K value =   3.497737
Required field change dB / B = -3.9373e-003
Required gap change dgap =  2.3010e-005 m
Beam x motion required dx = -5.1134e-003 m



                       Phase Matching Shim Data

Entrance:
Number of end poles = 4
Phases At The Entrance Poles:
Phase = 0 at cell boundary.
Pole     Phase     ExpectPhase   Phase Err  | Impulse Model
  #      (deg)        (deg)        (deg)    |      (deg)   
----  -----------  -----------  ----------- | -------------
   1      240.256        0.000        0.000         236.895
   2      285.119        0.000        0.000         300.863
   3      462.050        0.000        0.000         480.863
   4      671.077        0.000        0.000         660.863
   5      843.565      810.000       33.565         840.863
   6     1029.218      990.000       39.218        1020.863
   7     1207.992     1170.000       37.992        1200.863
   8     1390.494     1350.000       40.494        1380.863
   9     1572.851     1530.000       42.851        1560.863
  10     1752.938     1710.000       42.938        1740.863
  11     1933.314     1890.000       43.314        1920.863
  12     2110.860     2070.000       40.860        2100.863
  13     2298.105     2250.000       48.105        2280.863
  14     2469.949     2430.000       39.949        2460.863
Mean phase error at the entrance =      40.929 deg
Phase shim dimension at the entrance =  0.000e+000 m

Exit:
Number of end poles = 4
Phases From The Exit Poles To The Cell Boundary:
Pole   Phase To    ExpectPhase   Phase Err  | Impulse Model
  #    Cell(deg)      (deg)        (deg)    |      (deg)   
----  -----------  -----------  ----------- | -------------
 226      253.057        0.000        0.000         236.895
 225      302.516        0.000        0.000         300.863
 224      469.975        0.000        0.000         480.863
 223      689.753        0.000        0.000         660.863
 222      853.981      810.000       43.981         840.863
 221     1050.044      990.000       60.044        1020.863
 220     1210.026     1170.000       40.026        1200.863
 219     1418.484     1350.000       68.484        1380.863
 218     1577.649     1530.000       47.649        1560.863
 217     1783.462     1710.000       73.462        1740.863
 216     1941.296     1890.000       51.296        1920.863
 215     2148.746     2070.000       78.746        2100.863
 214     2303.247     2250.000       53.247        2280.863
 213     2508.869     2430.000       78.869        2460.863
Mean phase error at the exit =      59.580 deg
Phase shim dimension at the exit =  0.000e+000 m

Cell:
Impulse model phase change in the cell =   40741.727 deg
Phase change in the cell =   41044.272 deg
Expected phase change in the cell =   40680.000 deg
Phase error in the cell =     364.272 deg
