Matlab commands to set SXU to 10 mm gap and to zero taper and center undulators. Bring up terminal in physics@lcls-srv01 Go to Heinz-Dieter's matlab directory >> cd .. >> cd nuhn/wrk/matlab/Ks Start Matlab >> matlab -nodesktop See where the SXU are set now >> UndRead('SXR','list') ; Output should look like: indx cell K value gap value taper value offset slope ready mode (mm) (microns) (microns) (microns) 01 26 5.1199 8.324 -1.0 -29.0 -5.3 yes Adjust Gap 02 27 5.1205 8.296 0.1 -0.5 +2.9 yes Adjust Gap 03 28 5.1207 8.275 -0.8 +11.1 +7.3 yes Adjust Gap 04 29 5.1207 8.315 -1.1 +1.8 +11.4 yes Adjust Gap 05 30 5.1209 8.274 0.5 +10.0 -2.3 yes Adjust Gap 06 31 5.1210 8.287 -0.1 +12.0 +3.1 yes Adjust Gap 07 32 5.1204 8.310 3.3 -12.6 +11.4 yes Adjust Gap 08 33 5.1184 8.334 5.4 -3.9 -0.4 yes Adjust Gap 09 34 5.1147 8.293 -0.0 -12.9 +11.4 yes Adjust Gap 10 36 3.4779 11.880 0.4 +17.3 +3.6 yes Adjust Gap 11 37 3.4777 11.861 -0.5 +8.7 -6.5 yes Adjust Gap 12 38 3.4778 11.852 -0.0 +0.0 +8.1 yes Adjust Gap 13 39 3.4778 11.826 0.0 +6.0 -3.5 yes Adjust Gap 14 40 3.4778 11.847 0.0 +5.3 -7.2 yes Adjust Gap 15 41 3.4778 11.830 0.0 +8.5 -9.7 yes Adjust Gap 16 42 3.4778 11.855 -0.4 +10.9 -15.9 yes Adjust Gap 17 43 3.4778 11.847 0.3 +11.3 -10.6 yes Adjust Gap 18 44 3.4778 11.851 -0.1 +5.8 +7.7 yes Adjust Gap 19 45 3.4778 11.848 0.0 -4.2 -3.2 yes Adjust Gap 20 46 3.4779 11.862 0.0 -2.0 -15.2 yes Adjust Gap 21 47 3.4726 11.853 -0.1 +4.0 +3.9 yes Adjust Gap Set cell list >> cellList = [26:34,36:47]; Set gaps to 10.0 mm and zero taper, center and slope >> UndGapSetRaw('SXR',cellList,cellList*0+10.0) check that the SXU made it to 10 mm >> UndRead('SXR','list') ; To see previous gap in Archiver use USEG:UNDS:2650:GapAct for cell 26 for example