Changeset 12 in MML


Ignore:
Timestamp:
Jan 10, 2014, 2:46:09 PM (10 years ago)
Author:
zhangj
Message:

Fix the bug of the ring circumference in the ring lattices to get the correct 6D-orbit.

Location:
trunk
Files:
1 added
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/at/atphysics

    • Property svn:ignore
      •  

        old new  
         1findmpoleraddiffmatrix.mexa64
        12 *.mexa64
        23
    • Property svn:igore set to
      *.mexa64


  • trunk/machine/SOLEIL/common/plotfamily/plotfamilystartup.m

    r4 r12  
    1717                'SDL13 (NANO)', 'SDM14 (SEXTANTS)', 'SDC14 (SIXS)', 'SDM15 (CASSIOPEE)', 'SDC15 (SIRIUS)', 'SDM16 (LUCIA)', ...
    1818                };
    19 Superperiods = 4; % number of superperiods
     19Superperiods = 2; % number of superperiods
    2020
    2121L = getfamilydata('Circumference');
  • trunk/machine/THOMX/StorageRing/Lattices/CDR_017_064_r56_02_sx_Dff_corrSX_BPMIP.m

    r8 r12  
    1818disp(['** Loading THOMX ring lattice ',mfilename]);
    1919
    20 L0 = 16.8;
     20L0 =  16.789703999999997;   % the 6D ThomX ring is very sensitive to the
     21             %   longitudinal setting, so defind the
     22             %   value of L0 as the value getting from "getcircumfenrence"!!!
    2123C0 = 2.99792458e8; % speed of light [m/s]
    2224% HarmNumber = 28.0899; % RF harmonic number
  • trunk/machine/THOMX/StorageRing/Lattices/CDR_017_072_r56_02_sx_Dff_corrSX_BPMIP.m

    r8 r12  
    2727 
    2828 
    29  L0 = 16.789680000000004; % design circumference length [m];
     29 L0 = 16.789703999999997; % design circumference length [m];
    3030                          % ThomX machine is very sensitive
    31                           %  to the accuracy of the circumference
     31                          %  to the accuracy of the circumference !!!!!!!!
    3232 C0 = 2.99792458e8; % speed of light [m/s]
    3333% HarmNumber = 28.0899; % RF harmonic number
     
    124124% the same location as sextupole
    125125%========================
    126 %
     126% length kick angle x/y
    127127 HCOR = corrector('HCOR',1.0e-6,[0.0, 0],'CorrectorPass');
    128128 
  • trunk/machine/THOMX/StorageRing/thomxinit.m

    r5 r12  
    203203AO.(ifam).History.MemberOf = {'Plotfamily'};
    204204
     205% 4 electrodes?
    205206AO.(ifam).Va = AO.(ifam).History;
    206207AO.(ifam).Va.TangoNames(:,:)       = strcat(dev, '/VaSA');
     
    432433end
    433434
    434 
     435% need to customized for ThomX?
    435436AO.(ifam).Setpoint.Tolerance(:,:)    = 1e-2*ones(devnumber,1);
    436 
    437 % need to customized for ThomX?
    438437% Warning optics dependent cf. Low alpha lattice
    439438AO.(ifam).Setpoint.DeltaRespMat(:,:) = ones(devnumber,1)*5e-6*2; % 2*5 urad (half used for kicking)
     
    586585%convert response matrix kicks to HWUnits (after AO is loaded to AppData)
    587586setao(AO);   %required to make physics2hw function
     587
    588588AO.(ifam).Setpoint.DeltaRespMat = physics2hw(AO.(ifam).FamilyName,'Setpoint', ...
    589589    AO.(ifam).Setpoint.DeltaRespMat, AO.(ifam).DeviceList);
  • trunk/machine/THOMX/TL/Lattices/TLlattice.m

    r5 r12  
    9797
    9898% Lattice
     99% definition of BPMX must be followed by BPMz
    99100ELIST =[DEBUT ...
    100101 SD1L   HCOR    VCOR    SD1L     QP1L     SD2L    QP2L     SD2L   QP3L ...
  • trunk/machine/THOMX/TL/TLinit.m

    r8 r12  
    361361
    362362
    363 
     363%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    364364%% Horizontal Correctors
     365%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    365366
    366367ifam = 'HCOR';
    367368AO.(ifam).FamilyName           = ifam;
     369AO.(ifam).FamilyType           = 'COR';
    368370AO.(ifam).MemberOf             = {'MachineConfig'; 'Magnet'; 'COR'; 'HCOR'; 'Archivable'};
    369371
     
    398400
    399401AO.(ifam).Setpoint = AO.(ifam).Monitor;
    400 %AO.(ifam).Monitor.TangoNames     = strcat(AO.(ifam).DeviceName, '/currentPM');
    401 
     402%AO.(ifam).Monitor.TangoNames     = strcat(AO.(ifam).DeviceName,
     403%'/currentPM');
     404
     405%need to modify when ThomX is ready
     406AO.(ifam).Setpoint.Tolerance(:,:)    = 1e-2*ones(devnumber,1);
     407AO.(ifam).Setpoint.DeltaRespMat(:,:) = ones(devnumber,1)*5e-6*2; % 2*5 urad (half used for kicking)
     408
     409setao(AO);
     410
     411%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    402412%% Vertical Correctors
     413%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    403414
    404415ifam = 'VCOR';
    405416
    406417AO.(ifam).FamilyName           = ifam;
     418AO.(ifam).FamilyType           = 'COR';
    407419AO.(ifam).MemberOf             = {'MachineConfig'; 'Magnet'; 'COR'; 'VCOR'; 'Archivable'};
    408420AO.(ifam).Mode                 = Mode;
     
    439451AO.(ifam).Setpoint = AO.(ifam).Monitor;
    440452%AO.(ifam).Monitor.TangoNames     = strcat(AO.(ifam).DeviceName, '/currentPM');
     453
     454%need to modify when ThomX is ready
     455AO.(ifam).Setpoint.Tolerance(:,:)    = 1e-2*ones(devnumber,1);
     456AO.(ifam).Setpoint.DeltaRespMat(:,:) = ones(devnumber,1)*5e-6*2; % 2*5 urad (half used for kicking)
     457
    441458setao(AO);
    442459
  • trunk/machine/THOMX/TL/setoperationalmode.m

    r8 r12  
    5555
    5656
    57 
     57%need to update for ThomX...
    5858% Tune processor delay: delay required to wait
    5959% to have a fresh tune measurement after changing
  • trunk/machine/THOMX/TL/updateatindex.m

    r5 r12  
    9797    TwissData.beta  = [34.46,33.94]';
    9898    TwissData.mu    = [0 0]';
    99     TwissData.ClosedOrbit = [0 0 0 0]';
    100     TwissData.dP = 0;
    101     TwissData.dL = 0;
     99    TwissData.ClosedOrbit = [0 0 0 0]'; %initial 4-D COD
     100    TwissData.dP = 0;             %initial dP
     101    TwissData.dL = 0;             % initial dL
    102102    TwissData.Dispersion  = [0 0 0 0]';
    103103
  • trunk/machine/THOMX/common/plotfamily/plotfamily.m

    r5 r12  
    2929
    3030
    31 % Last Modified by GUIDE v2.5 29-Jul-2011 11:51:08
     31% Last Modified by GUIDE v2.5 10-Jan-2014 10:30:58
    3232
    3333
     
    161161elseif strcmpi(Machine,'Booster')
    162162    namestr = 'Booster';
    163 elseif strcmpi(Machine,'LT1') || strcmpi(Machine,'LT2')
    164     error('Not working for LT1 or LT2');
     163elseif strcmpi(Machine,'TL') || strcmpi(Machine,'EL')
     164    error('Not working for TL or EL');
    165165else
    166166    error('Unknown machine\n exiting ...');
     
    42504250% eventdata  reserved - to be defined in a future version of MATLAB
    42514251% handles    structure with handles and user data (see GUIDATA)
     4252
     4253
     4254% --- Executes on mouse press over axes background.
     4255function Graph1_ButtonDownFcn(hObject, eventdata, handles)
     4256% hObject    handle to Graph1 (see GCBO)
     4257% eventdata  reserved - to be defined in a future version of MATLAB
     4258% handles    structure with handles and user data (see GUIDATA)
  • trunk/machine/THOMX/common/plotfamily/plotfamilystartup.m

    r5 r12  
    1111set(handles.DisabledSetpointChanges, 'Checked', 'On');
    1212
    13 Sectors = 16; % number of sectors
    14 Straights = 24; % numberof straight sections
     13Sectors = 2; % number of sectors
     14Straights = 4; % numberof straight sections
    1515StraigthPosition = [0; getspos('BPMx', getidbpmlist)];
    1616% is it the best place for these definitions ?
  • trunk/machine/THOMX/readme

    r8 r12  
    1414
    1515case 'TANGO'
     16
     17
     18(3) 10/01/2014   By Jianfeng Zhang @ LAL
     19    The 6D orbit of the ThomX ring is very sensitive to the correct
     20    setting of the RF cacity. So the ring cirumfenrence should be
     21    set to the value get by "getcircumference.m", the speed of the
     22    light should be the same as the one defined in "findorbit6.m",
     23    the harmonic number should be corrected set, then one can get
     24     the right value of the synchrotron
     25    phase!!!!!!!!!!!
     26
     27    Otherwise, the 6D orbit is not correct!!!!!!!!!!!!
     28
     29    This constrait requires the accurate measurements of the ring
     30    circumference and other longitudinal parameters (RF cavity voltage,
     31    phase, harmonic number) etc!!!!!!! Otherwise, one can't correctly
     32    model the ThomX ring!!!!!!!!!!!!!!
Note: See TracChangeset for help on using the changeset viewer.