Changeset 8 in MML
- Timestamp:
- Dec 18, 2013, 3:39:52 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LOGFILE_thomx.m
r5 r8 159 159 160 160 161 162 -
trunk/at/atphysics
-
Property
svn:ignore
set to
*.mexa64
-
Property
svn:ignore
set to
-
trunk/at/simulator/element
-
Property
svn:ignore
set to
*.mexa64
-
Property
svn:ignore
set to
-
trunk/at/simulator/element/user
-
Property
svn:ignore
set to
*.mexa64
-
Property
svn:ignore
set to
-
trunk/at/simulator/track
-
Property
svn:ignore
set to
*.mexa64
-
Property
svn:ignore
set to
-
trunk/machine/THOMX/StorageRing/Lattices/CDR_017_072_r56_02_sx_Dff_corrSX_BPMIP.m
r5 r8 36 36 %% ====================== 37 37 % RF Cavity 38 % ======================= 38 % ======================== 39 39 % NAME L U[V] f[Hz] h method 40 40 RF = rfcavity('RF', 0.0, 300e3, HarmNumber*C0/L0, HarmNumber, ... … … 113 113 %% ======================= 114 114 % BPM 115 % installed before or after quadrupole 115 116 %======================== 116 117 % horizontal … … 121 122 %% ======================= 122 123 % correctors 124 % the same location as sextupole 123 125 %======================== 124 126 % … … 132 134 133 135 DEBUT = drift('DEBUT',0.0,'DriftPass'); 134 FIN= drift('FIN',0.0,'DriftPass');136 FIN = drift('FIN',0.0,'DriftPass'); 135 137 136 138 … … 146 148 SD1S1 SX2 HCOR VCOR SD1S QP4 ... 147 149 SD2 QP3 SD2S BPMx BPMz SD2S... 148 COE BEND COS SD0 BPMx...149 BPMzSD0 COE ...150 COE BEND COS SD0 ... 151 SD0 COE ... 150 152 BEND COS SD2S BPMx BPMz SD2S ... 151 153 QP3 SD2 QP4 SD1S SX2 HCOR ... … … 153 155 SX3 HCOR VCOR SD3S QP31 SD3S ... 154 156 SX1 HCOR VCOR SD3S1 COE BEND ... 155 COS SD31 QP2 SD2 QP1 157 COS SD31 QP2 SD2 QP1 BPMx BPMz .... 156 158 SD5 SD5 BPMx BPMz QP1 ... 157 159 SD2 QP2 SD31 COE BEND COS ... -
trunk/machine/THOMX/StorageRing/setoperationalmode.m
r5 r8 117 117 %AO = local_setmagnetcoefficient(AO, @magnetcoefficients); 118 118 %setao(AO); 119 % elseif ModeNumber == 2119 elseif ModeNumber == 2 120 120 % % User mode - nominal lattice 2010 until installation of S11 and S12 121 % AD.OperationalMode = '50e-3 GeV, 3.175 1.64'; 122 % AD.Energy = 50e-3; % Make sure this is the same as bend2gev at the production lattice! 123 % ModeName = 'CDR_017_064_r56_02_sx_Dff'; 124 % OpsFileExtension = '_CDR_017_064_r56_02_sx_Dff'; 125 % 126 % % AT lattice 127 % AD.ATModel = 'CDR_017_064_r56_02_sx_Dff'; 128 % eval(AD.ATModel); %run model for compiler; 129 % 130 % % Golden TUNE is with the TUNE family 131 % AO = getao; 132 % AO.TUNE.Monitor.Golden = [ 133 % 0.175 134 % 0.640 135 % NaN]; 136 % 137 % % Golden chromaticity is in the AD (Physics units) 138 % AD.Chromaticity.Golden = [0; 0]; 139 % 140 % % Status factory 141 % % don't need for ThomX ????? 142 % %local_set_config_mode('normalconfig120'); d 143 % %AO = local_setmagnetcoefficient(AO, @magnetcoefficients); 144 % %setao(AO); 145 121 AD.OperationalMode = '50e-3 GeV, 3.175 1.64'; 122 AD.Energy = 50e-3; % Make sure this is the same as bend2gev at the production lattice! 123 ModeName = 'CDR_017_064_r56_02_sx_Dff_corrSX_BPMIP'; 124 OpsFileExtension = '_CDR_017_064_r56_02_sx_Dff_corrSX_BPMIP'; 125 126 % AT lattice 127 AD.ATModel = 'CDR_017_064_r56_02_sx_Dff_corrSX_BPMIP'; 128 eval(AD.ATModel); %run model for compiler; 129 130 % Golden TUNE is with the TUNE family 131 AO = getao; 132 AO.TUNE.Monitor.Golden = [ 133 0.175 134 0.640 135 NaN]; 136 137 % Golden chromaticity is in the AD (Physics units) 138 AD.Chromaticity.Golden = [0; 0]; 139 140 % Status factory 141 % don't need for ThomX ????? 142 %local_set_config_mode('normalconfig120'); d 143 %AO = local_setmagnetcoefficient(AO, @magnetcoefficients); 144 %setao(AO); 145 146 146 147 else 147 148 error('Operational mode unknown'); -
trunk/machine/THOMX/TL/TLinit.m
r5 r8 83 83 84 84 85 % AD already been defined in setpathmml.m. Modified by Jianfeng Zhang @ LAL, 86 % 17/12/2013 85 87 %Mode = 'online'; 86 setad([]); %clear AcceleratorData memory87 AD.SubMachine = 'TL'; % Machine Name88 AD.Energy = 0.05 ; % Energy in GeV89 90 91 setad(AD); %load AcceleratorData88 %setad([]); %clear AcceleratorData memory 89 %AD.SubMachine = 'TL'; % Machine Name 90 %AD.Energy = 0.05 ; % Energy in GeV 91 92 93 %setad(AD); %load AcceleratorData 92 94 93 95 %%%%%%%%%%%%%%%%%%%% -
trunk/machine/THOMX/TL/aoinit.m
r5 r8 3 3 % 4 4 % 5 % See Also soleilinit, setpathsoleil5 % See Also TLinit, setpaththomx 6 6 7 7 % Written by Laurent S. Nadolski 8 % Modified by Jianfeng Zhang for ThomX 8 9 9 10 -
trunk/machine/THOMX/TL/setoperationalmode.m
r5 r8 42 42 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 43 43 AD = getad; 44 AD.Machine = 'THOMX'; % Will already be defined if setpathmml was used 45 AD.MachineType = 'StorageRing'; % Will already be defined if setpathmml was used 46 AD.SubMachine = 'TL'; % Will already be defined if setpathmml was used 47 AD.OperationalMode = ''; % Gets filled in later 44 % Modified by Jianfeng Zhang @ LAL, 17/12/2013 45 if(isempty(AD.Machine)) 46 AD.Machine = 'THOMX'; % Will already be defined if setpathmml was used 47 end 48 if(isempty(AD.Machine)) 49 AD.MachineType = 'Transport'; % Will already be defined if setpathmml was used 50 end 51 if(isempty(AD.SubMachine)) 52 AD.SubMachine = 'TL'; % Will already be defined if setpathmml was used 53 end 54 55 48 56 49 57 -
trunk/mml/plotcm.m
r4 r8 113 113 end 114 114 115 % Sector 11 116 % Off 1.9 GeV 1.5 GeV 117 % HCMCHICANEM(11,1) 80.0 40.5 52.0 118 % HCMCHICANEM(11,1) 80.0 40.5 52.0 119 % HCM(10,8) 0.0 -17.0 -14.0 120 % HCM(11,1) 0.0 -17.0 -14.0 115 121 116 ihcm = findrowindex([10 8], x.DeviceList); 122 117 if length(ihcm) == 1 -
trunk/mml/setpaththomx.m
r5 r8 7 7 % INPUTS 8 8 % varargin(1): 9 % SubMachineName - 'StorageRing', ' LT','LE'9 % SubMachineName - 'StorageRing', 'TL','EL' 10 10 % varagin(2): 11 11 % hardware control system: LAbCA, MCA, Tango, … … 110 110 % need to be customized for THOMX 111 111 addpath(fullfile(MMLROOT, 'machine', 'THOMX', 'common', 'plotfamily')); 112 % addpath(fullfile(MMLROOT, 'machine', 'SOLEIL', 'common', 'plotfamily'));113 112 addpath(fullfile(MMLROOT, 'machine', 'THOMX', 'common', 'configurations')); 114 % addpath(fullfile(MMLROOT, 'machine', 'SOLEIL', 'common', 'configurations')); 115 % addpath(fullfile(MMLROOT, 'machine', 'SOLEIL', 'common', 'cycling')); 113 addpath(fullfile(MMLROOT, 'machine', 'THOMX', 'common', 'cycling')); 116 114 % addpath(fullfile(MMLROOT, 'machine', 'SOLEIL', 'common', 'diag', 'DserverBPM')); 117 115 addpath(fullfile(MMLROOT, 'applications', 'mmlviewer'));
Note: See TracChangeset
for help on using the changeset viewer.