Changeset 8 in MML


Ignore:
Timestamp:
Dec 18, 2013, 3:39:52 PM (10 years ago)
Author:
zhangj
Message:

Fix the bug to get correct machine type of the TL.

Location:
trunk
Files:
2 added
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/LOGFILE_thomx.m

    r5 r8  
    159159
    160160
     161   
     162 
  • trunk/at/atphysics

    • Property svn:ignore set to
      *.mexa64






  • trunk/at/simulator/element

    • Property svn:ignore set to
      *.mexa64


  • trunk/at/simulator/element/user

    • Property svn:ignore set to
      *.mexa64


  • trunk/at/simulator/track

    • Property svn:ignore set to
      *.mexa64


  • trunk/machine/THOMX/StorageRing/Lattices/CDR_017_072_r56_02_sx_Dff_corrSX_BPMIP.m

    r5 r8  
    3636 %% ======================
    3737%  RF Cavity
    38 % =======================
     38% ========================
    3939%              NAME   L     U[V]       f[Hz]          h        method
    4040RF = rfcavity('RF', 0.0,  300e3, HarmNumber*C0/L0, HarmNumber, ...
     
    113113%% =======================
    114114% BPM
     115% installed before or after quadrupole
    115116%========================
    116117% horizontal
     
    121122%% =======================
    122123% correctors
     124% the same location as sextupole
    123125%========================
    124126%
     
    132134 
    133135 DEBUT = drift('DEBUT',0.0,'DriftPass');
    134 FIN = drift('FIN',0.0,'DriftPass');
     136 FIN  = drift('FIN',0.0,'DriftPass');
    135137
    136138
     
    146148  SD1S1         SX2           HCOR          VCOR          SD1S          QP4 ...         
    147149  SD2           QP3           SD2S          BPMx          BPMz          SD2S...         
    148   COE           BEND           COS           SD0           BPMx ...
    149   BPMz          SD0           COE           ...
     150  COE           BEND           COS           SD0            ...
     151  SD0           COE           ...
    150152  BEND           COS           SD2S          BPMx          BPMz          SD2S  ...       
    151153  QP3           SD2           QP4           SD1S          SX2           HCOR  ...       
     
    153155  SX3           HCOR          VCOR          SD3S          QP31          SD3S ...       
    154156  SX1           HCOR          VCOR          SD3S1         COE           BEND ...         
    155   COS           SD31          QP2           SD2           QP1                ....       
     157  COS           SD31          QP2           SD2           QP1         BPMx         BPMz      ....       
    156158                SD5           SD5           BPMx          BPMz          QP1 ...         
    157159  SD2           QP2           SD31          COE           BEND           COS ...         
  • trunk/machine/THOMX/StorageRing/setoperationalmode.m

    r5 r8  
    117117    %AO = local_setmagnetcoefficient(AO, @magnetcoefficients);
    118118    %setao(AO);
    119 % else if ModeNumber == 2
     119 elseif ModeNumber == 2
    120120%     % 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       
    146147 else
    147148    error('Operational mode unknown');
  • trunk/machine/THOMX/TL/TLinit.m

    r5 r8  
    8383
    8484
     85% AD already been defined in setpathmml.m. Modified by Jianfeng Zhang @ LAL,
     86% 17/12/2013
    8587%Mode             = 'online';
    86 setad([]);       %clear AcceleratorData memory
    87 AD.SubMachine    = 'TL'; % Machine Name
    88 AD.Energy        = 0.05 ; % Energy in GeV
    89 
    90 
    91 setad(AD);   %load AcceleratorData
     88%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
    9294
    9395%%%%%%%%%%%%%%%%%%%%
  • trunk/machine/THOMX/TL/aoinit.m

    r5 r8  
    33%
    44%
    5 %  See Also soleilinit, setpathsoleil
     5%  See Also TLinit, setpaththomx
    66
    77% Written by Laurent S. Nadolski
     8% Modified by Jianfeng Zhang for ThomX
    89
    910
  • trunk/machine/THOMX/TL/setoperationalmode.m

    r5 r8  
    4242%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    4343AD = 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
     45if(isempty(AD.Machine))
     46    AD.Machine = 'THOMX';            % Will already be defined if setpathmml was used
     47end
     48if(isempty(AD.Machine))
     49    AD.MachineType = 'Transport';   % Will already be defined if setpathmml was used
     50end
     51if(isempty(AD.SubMachine))
     52    AD.SubMachine  = 'TL';           % Will already be defined if setpathmml was used
     53end
     54
     55
    4856
    4957
  • trunk/mml/plotcm.m

    r4 r8  
    113113    end
    114114
    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   
    121116    ihcm = findrowindex([10 8], x.DeviceList);
    122117    if length(ihcm) == 1
  • trunk/mml/setpaththomx.m

    r5 r8  
    77% INPUTS
    88%  varargin(1):
    9 %       SubMachineName - 'StorageRing', 'LT','LE'
     9%       SubMachineName - 'StorageRing', 'TL','EL'
    1010%  varagin(2): 
    1111%       hardware control system: LAbCA, MCA, Tango,
     
    110110    %         need to be customized for THOMX
    111111         addpath(fullfile(MMLROOT, 'machine', 'THOMX', 'common', 'plotfamily'));
    112 %        addpath(fullfile(MMLROOT, 'machine', 'SOLEIL', 'common', 'plotfamily'));
    113112 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'));
    116114%        addpath(fullfile(MMLROOT, 'machine', 'SOLEIL', 'common', 'diag', 'DserverBPM'));
    117115        addpath(fullfile(MMLROOT, 'applications', 'mmlviewer'));
Note: See TracChangeset for help on using the changeset viewer.