plateform stringclasses 1
value | repo_name stringlengths 13 113 | name stringlengths 3 74 | ext stringclasses 1
value | path stringlengths 12 229 | size int64 23 843k | source_encoding stringclasses 9
values | md5 stringlengths 32 32 | text stringlengths 23 843k |
|---|---|---|---|---|---|---|---|---|
github | lnls-fac/MatlabMiddleLayer-master | quads2.m | .m | MatlabMiddleLayer-master/Release/machine/CLS/StorageRing/quads2.m | 59,343 | utf_8 | 65dd811011044e019251c5138809223d | function varargout = quads2(varargin)
% $Header: MatlabApplications/acceleratorcontrol/cls/quads2.m 1.2.1.1 2007/07/06 10:42:43CST Tasha Summers (summert) Exp $
%QUADS2 M-file for quads2.fig
% QUADS2, by itself, creates a new QUADS2 or raises the existing
% singleton*.
%
% H = QUADS2 returns the handle ... |
github | lnls-fac/MatlabMiddleLayer-master | clsMonitorSrCurrent.m | .m | MatlabMiddleLayer-master/Release/machine/CLS/StorageRing/clsMonitorSrCurrent.m | 2,499 | utf_8 | c121c9c037f6cc245b95d3e4c7d6639f | function [SRcurrent]=clsMonitorSrCurrent(seconds)
% ----------------------------------------------------------------------------------------------
% $Header: MatlabApplications/acceleratorcontrol/cls/clsMonitorSrCurrent.m 1.2 2007/03/02 09:03:16CST matiase Exp $
% ---------------------------------------------------... |
github | lnls-fac/MatlabMiddleLayer-master | dispersion2.m | .m | MatlabMiddleLayer-master/Release/machine/CLS/StorageRing/dispersion2.m | 35,031 | utf_8 | 8d6b84dec2922dca97f729f721f2f30c | function varargout = dispersion2(varargin)
% DISPERSION2 M-file for dispersion2.fig
% DISPERSION2, by itself, creates a new DISPERSION2 or raises the existing
% singleton*.
%
% H = DISPERSION2 returns the handle to a new DISPERSION2 or the handle to
% the existing singleton*.
%
% DISPER... |
github | lnls-fac/MatlabMiddleLayer-master | setclsconfig.m | .m | MatlabMiddleLayer-master/Release/machine/CLS/StorageRing/setclsconfig.m | 4,061 | utf_8 | cf1177ee3fa1dff7d0dce894f0ee961d |
function setmachineconfig(FileName, varargin)
% ----------------------------------------------------------------------------------------------
% $Header: MatlabApplications/acceleratorcontrol/cls/setclsconfig.m 1.2 2007/03/02 09:17:52CST matiase Exp $
% ------------------------------------------------------------... |
github | lnls-fac/MatlabMiddleLayer-master | spsinit.m | .m | MatlabMiddleLayer-master/Release/machine/SPS/StorageRing/spsinit.m | 23,189 | utf_8 | 45611cd7b0274ce3a3bb087d8df24108 | function spsinit(OperationalMode)
%SPSINIT - MML setup file for the Siam Photon Source (SPS)
if nargin < 1
% Default operational mode: User Mode
OperationalMode = 1;
end
% Clear previous AcceleratorObjects
setao([]);
setad([]);
% Build the various device lists
OnePerSectorList=[];
T... |
github | lnls-fac/MatlabMiddleLayer-master | chromaticity.m | .m | MatlabMiddleLayer-master/Release/machine/SPS/StorageRing/chromaticity.m | 118,391 | utf_8 | 829fbf2b1e432515d58a918139deebf7 | function varargout = chromaticity(varargin)
% CHROMATICITY M-file for chromaticity.fig
% CHROMATICITY, by itself, creates a new CHROMATICITY or raises the existing
% singleton*.
%
% H = CHROMATICITY returns the handle to a new CHROMATICITY or the handle to
% the existing singleton*.
%
% ... |
github | lnls-fac/MatlabMiddleLayer-master | gettune_sps.m | .m | MatlabMiddleLayer-master/Release/machine/SPS/StorageRing/gettune_sps.m | 3,716 | utf_8 | 7f44a7c3af2d67d677c5b5a0353a04e5 | function [Tune, tout, DataTime, ErrorFlag] = gettune_sps(FamilyName, Field, DeviceList, t)
% SPS Storage Ring Tune Measurement
%
% | Lower Fractional Tune, usually Horizontal |
% | | = gettune_sps
% | Higher Fractional Tune, usually Vertical |
%
%
t0 = clock;
to... |
github | lnls-fac/MatlabMiddleLayer-master | snsinit.m | .m | MatlabMiddleLayer-master/Release/machine/SNS/Ring/snsinit.m | 21,167 | utf_8 | a365f2d00ab71d7ff0a1406e243d3f99 | function snsinit(OperationalMode)
%SNSINIT - MML setup file for SNS damping ring
if nargin < 1
% Default operational mode: User Mode
OperationalMode = 1;
end
% Clear previous AcceleratorObjects
setao([]);
setad([]);
[BPMx, BPMy, HCM, VCM, QF, QD, SkewQuad, SF, SD, BEND] = snslattice;
... |
github | lnls-fac/MatlabMiddleLayer-master | ltbinit.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/LTB/ltbinit.m | 19,181 | utf_8 | e22e9d636a6a9d914ec5ef5358571a7e | function asbosterinit(OperationalMode)
% aspinit(OperationalMode)
%
% Initialize parameters for AS Booster control in MATLAB
%
%==========================
% Accelerator Family Fields
%==========================
% FamilyName BPMx, HCM, etc
% CommonNames Shortcut name for each element (optio... |
github | lnls-fac/MatlabMiddleLayer-master | setorbit.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/Booster/setorbit.m | 50,463 | utf_8 | 61893bf64c27ffed74a3d5087e25ed31 | function [OCS, RF, OCS0, RF0, V, S] = setorbit(varargin)
%SETORBIT - Orbit correction function
% Family/DeviceList method:
% [CM, RF, OCS0, RF0, V, Svalues] = setorbit(GoalOrbit, BPMFamily, BPMDevList, CMFamily, CMDevList, NIter, SVDIndex, BPMWeight);
%
% Data structure method:
% [CM, RF, OCS0, RF0, V, Svalues] = s... |
github | lnls-fac/MatlabMiddleLayer-master | setlocogains.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/Booster/setlocogains.m | 9,120 | utf_8 | febb517f47a89a964b21e9e9b4d55197 | function setlocogains(CommandInput, FileName)
%SETLOCOGAINS - Puts the BPM and correctors gain in the middle layer AO
% setlocogains(CommandInput, FileName)
% setlocogains or setlocogains('Default')
% setlocogains(LocoFileName)
% setlocogains('')
%
% INPUTS
% 1. CommandInput
% 'Default' - Trans... |
github | lnls-fac/MatlabMiddleLayer-master | asboosterinit.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/Booster/asboosterinit.m | 53,323 | utf_8 | eff81fa2ecdc6906026deac45fa26d8d | function asbosterinit(OperationalMode)
% aspinit(OperationalMode)
%
% Initialize parameters for AS Booster control in MATLAB
%
%==========================
% Accelerator Family Fields
%==========================
% FamilyName BPMx, HCM, etc
% CommonNames Shortcut name for each element (optio... |
github | lnls-fac/MatlabMiddleLayer-master | btsinit.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/BTS/btsinit.m | 16,841 | utf_8 | 485f7c680bd20f8802e2f0560e9b6267 | function btsinit(OperationalMode)
% btsinit(OperationalMode)
%
% Initialize parameters for BTS control in MATLAB
%
%==========================
% Accelerator Family Fields
%==========================
% FamilyName BPMx, HCM, etc
% CommonNames Shortcut name for each element (optional)
% Devi... |
github | lnls-fac/MatlabMiddleLayer-master | srcycle_quads.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/srcycle_quads.m | 6,428 | utf_8 | cd3f7764ac3103a32ec280022f1b15cf | function srcycle(LatticeFile, DisplayFlag)
%SRCYCLE - Standardize the storage ring magnets to the golden lattice
%
% INPUTS
% 1. LatticeFile - No input - cycle to the present lattice {Default}
% 'Golden' - cycle to the golden lattice
% LatticeFilename - cycle to the ConfigSet... |
github | lnls-fac/MatlabMiddleLayer-master | aoinit.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/aoinit.m | 1,745 | utf_8 | becc39d572fac48f95330206b948a9e2 | function aoinit(SubMachineName)
%AOINIT - Initialization function for the Matlab Middle Layer (MML)
% The path does not needs to be set in Standalone mode
if ~isdeployed_local
MMLROOT = getmmlroot;
% Add users directories
%CommonDirectory = fullfile(MMLROOT,'users','portmann','commands');
%if exist... |
github | lnls-fac/MatlabMiddleLayer-master | aspinit_v5skeleton.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/aspinit_v5skeleton.m | 58,339 | utf_8 | 93a6cb31711b3e7901c120c216e6ca5b | function aspinit(OperationalMode)
% aspinit(OperationalMode)
%
% Initialize parameters for ASP control in MATLAB
%
%==========================
% Accelerator Family Fields
%==========================
% FamilyName BPMx, HCM, etc
% CommonNames Shortcut name for each element (optional)
% Devi... |
github | lnls-fac/MatlabMiddleLayer-master | aspinitRF.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/aspinitRF.m | 105,284 | utf_8 | b3a2f32d52aa2656af01d7091b33de47 | function aspinit(OperationalMode)
% aspinit(OperationalMode)
%
% Initialize parameters for ASP control in MATLAB
%
%==========================
% Accelerator Family Fields
%==========================
% FamilyName BPMx, HCM, etc
% CommonNames Shortcut name for each element (optional)
% Devi... |
github | lnls-fac/MatlabMiddleLayer-master | assr4_splitbends_deiter.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/assr4_splitbends_deiter.m | 20,517 | utf_8 | 630424ca28f6c4b44149f04343bb445f | function assr4(varargin)
% Lattice definition file - generated by dimad2at v1.300000
%
% Eugene 2004-12-13 Updating the generalised file to realign the family
% names and elements with aspinit. NOTE: aspinit will not work with split
% elements... not without modification of the init file.
%
% Eugene 2005-09-16 Standar... |
github | lnls-fac/MatlabMiddleLayer-master | assr4_disp.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/assr4_disp.m | 19,369 | utf_8 | fe50485bda8249a268855e0ad95d531d | function assr4(varargin)
% Lattice definition file - generated by dimad2at v1.300000
%
% Eugene 2004-12-13 Updating the generalised file to realign the family
% names and elements with aspinit. NOTE: aspinit will not work with split
% elements... not without modification of the init file.
%
% Eugene 2005-09-16 Standar... |
github | lnls-fac/MatlabMiddleLayer-master | aspinit.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/aspinit.m | 91,380 | utf_8 | 87e213bbc6e0eedf66228729004a1ba6 | function aspinit(OperationalMode)
% aspinit(OperationalMode)
%
% Initialize parameters for ASP control in MATLAB
%
%==========================
% Accelerator Family Fields
%==========================
% FamilyName BPMx, HCM, etc
% CommonNames Shortcut name for each element (optional)
% Devi... |
github | lnls-fac/MatlabMiddleLayer-master | assr4_id.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/assr4_id.m | 12,120 | utf_8 | b00e00d534597f33a58a31b1e39e4003 |
function assr4(varargin)
% Lattice definition file - generated by dimad2at v1.300000
%
% Eugene 2004-12-13 Updating the generalised file to realign the family
% names and elements with aspinit. NOTE: aspinit will not work with split
% elements... not without modification of the init file.
%
% Eugene 2005-09-16 Standa... |
github | lnls-fac/MatlabMiddleLayer-master | generate_init.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/generate_init.m | 18,916 | utf_8 | e48b217913f108917b6ef334de1c5ad3 | function generate_init(filename)
% This function generates some of the more basic and repetitious aspects of
% creating an init file.
%
% Notes: When generating the string elements in the definitions below, they
% have to be all the same length. If the actual string is short you have to
% padd it with spaces.
... |
github | lnls-fac/MatlabMiddleLayer-master | srcycle.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/srcycle.m | 8,463 | utf_8 | db01798b525e61f8ff09261012060bbc | function srcycle(LatticeFile, DisplayFlag)
%SRCYCLE - Standardize the storage ring magnets to the golden lattice
%
% INPUTS
% 1. LatticeFile - No input - cycle to the present lattice {Default}
% 'Golden' - cycle to the golden lattice
% LatticeFilename - cycle to the ConfigSet... |
github | lnls-fac/MatlabMiddleLayer-master | assr4_splitbends_eugene.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/assr4_splitbends_eugene.m | 20,184 | utf_8 | 2c53e1cf54ed7e254b0f1946e6ebe241 | function assr4(varargin)
% Lattice definition file - generated by dimad2at v1.300000
%
% Eugene 2004-12-13 Updating the generalised file to realign the family
% names and elements with aspinit. NOTE: aspinit will not work with split
% elements... not without modification of the init file.
%
% Eugene 2005-09-16 Standar... |
github | lnls-fac/MatlabMiddleLayer-master | assr4.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/assr4.m | 11,075 | utf_8 | 333620cd9b37d214acc0788e165ddb1e | function assr4(varargin)
% Lattice definition file - generated by dimad2at v1.300000
%
% Eugene 2004-12-13 Updating the generalised file to realign the family
% names and elements with aspinit. NOTE: aspinit will not work with split
% elements... not without modification of the init file.
%
% Eugene 2005-09-16 Standar... |
github | lnls-fac/MatlabMiddleLayer-master | Monitor_Beep.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/Monitor_Beep.m | 7,263 | utf_8 | 060816931fbd7431f6529e3fa37596d7 | function monitor_beep()
% This simple program monitors the Required Channels in the Linac/Booster system to determine
% when the devices being observed have tripped. These devices include Booster RF
% status, Linac Klystron 01 status, Linac Klystron 02 status and the Linac
% Gun status. This file can be easily modifie... |
github | lnls-fac/MatlabMiddleLayer-master | changeaspoptics.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/changeaspoptics.m | 4,027 | utf_8 | b9e7dd8f4624e0bc4d45453733c07557 | function varargout = changeaspoptics(varargin)
% RING = CHANGEASPOPTICS([RING or 'model'],[number]) is used to change the
% optics of RING or if 'model' is specified then it will modify the lattice
% that is stored in the global variable THERING. If no string parameters
% are used then a list of options will be dis... |
github | lnls-fac/MatlabMiddleLayer-master | energyscalegui.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/energyscalegui.m | 18,744 | utf_8 | fcd186101a9a407d76223e9d85474628 | function varargout = energyscalegui(varargin)
% ENERGYSCALEGUI M-file for energyscalegui.fig
% ENERGYSCALEGUI, by itself, creates a new ENERGYSCALEGUI or raises the existing
% singleton*.
%
% H = ENERGYSCALEGUI returns the handle to a new ENERGYSCALEGUI or the handle to
% the existing singleton*.
%
... |
github | lnls-fac/MatlabMiddleLayer-master | aspinit_20061204.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/aspinit_20061204.m | 105,935 | utf_8 | c9f016637c03bd7a201c8696681b30a8 | function aspinit(OperationalMode)
% aspinit(OperationalMode)
%
% Initialize parameters for ASP control in MATLAB
%
%==========================
% Accelerator Family Fields
%==========================
% FamilyName BPMx, HCM, etc
% CommonNames Shortcut name for each element (optional)
% Devi... |
github | lnls-fac/MatlabMiddleLayer-master | assr4_splitbends.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/assr4_splitbends.m | 19,584 | utf_8 | f2bb4e4679c2138ca45e02d29438ff5d | function assr4(varargin)
% Lattice definition file - generated by dimad2at v1.300000
%
% Eugene 2004-12-13 Updating the generalised file to realign the family
% names and elements with aspinit. NOTE: aspinit will not work with split
% elements... not without modification of the init file.
%
% Eugene 2005-09-16 Standar... |
github | lnls-fac/MatlabMiddleLayer-master | assr4_wiggler.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/assr4_wiggler.m | 11,673 | utf_8 | 964d8cba6e2402f3232a31bd7d06b839 |
function assr4(varargin)
% Lattice definition file - generated by dimad2at v1.300000
%
% Eugene 2004-12-13 Updating the generalised file to realign the family
% names and elements with aspinit. NOTE: aspinit will not work with split
% elements... not without modification of the init file.
%
% Eugene 2005-09-16 Standa... |
github | lnls-fac/MatlabMiddleLayer-master | generate_hwinit.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/StorageRing/generate_hwinit.m | 5,734 | utf_8 | ad9a39de703de7ac167649138e9f9756 | function generate_hwinit(filename)
% This function generates some of the more basic and repetitious aspects of
% creating an init file.
%
% Notes: When generating the string elements in the definitions below, they
% have to be all the same length. If the actual string is short you have to
% padd it with spaces.... |
github | lnls-fac/MatlabMiddleLayer-master | injectorinit.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/Injector/injectorinit.m | 69,885 | utf_8 | 76a0ee3cca8f7b70934974ea8452701c | function asbosterinit(OperationalMode)
% aspinit(OperationalMode)
%
% Initialize parameters for AS injector (LTB, Booster, & BTS) control in MATLAB
% NOTE: 'plotfamily' is only a MemberOf the booster
%
%==========================
% Accelerator Family Fields
%==========================
% FamilyName B... |
github | lnls-fac/MatlabMiddleLayer-master | setlocogains.m | .m | MatlabMiddleLayer-master/Release/machine/ASP/Injector/setlocogains.m | 9,120 | utf_8 | febb517f47a89a964b21e9e9b4d55197 | function setlocogains(CommandInput, FileName)
%SETLOCOGAINS - Puts the BPM and correctors gain in the middle layer AO
% setlocogains(CommandInput, FileName)
% setlocogains or setlocogains('Default')
% setlocogains(LocoFileName)
% setlocogains('')
%
% INPUTS
% 1. CommandInput
% 'Default' - Trans... |
github | lnls-fac/MatlabMiddleLayer-master | elsainit.m | .m | MatlabMiddleLayer-master/Release/machine/ELSA/StorageRing/elsainit.m | 18,878 | utf_8 | ff925c2a9d9df4026579c100bbb0769b | function elsainit(OperationalMode)
%ELSAINIT - MML setup file for ELSA
if nargin < 1
% Default operational mode: User Mode
OperationalMode = 1;
end
% Clear previous AcceleratorObjects
setao([]);
setad([]);
[BPMx, BPMy, HCM, VCM, QF, QD, SF, SD, BEND] = elsalattice;
%%%%%%%%%%%%%%... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V22.01/setoperationalmode.m | 5,457 | utf_8 | 64aafa1e85183f98e61c30f457fb4504 | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
%
% History
%
% 2012-08-29 Ximenes
% Check if the AO exists
checkforao;
% MODES
ModeCell = { ...
'3 GeV - S05.01 (default)', ...
'3 GeV - S10', ..... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_si_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V22.01/sirius_si_lattice.m | 21,733 | utf_8 | 2a8983dd4af5bfd9dcdf39648cbd1039 | function [r, lattice_title] = sirius_si_lattice(varargin)
% the_ring = sirius_si_lattice : retorna o modelo atual do anel;
%
% the_ring = sirius_si_lattice(mode) : Ateh o momento, pode ser 'A', 'B' or 'C'(default).
%
% the_ring = sirius_si_lattice(mode,version): mode_version define o ponto de operacao
% ... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V22.01/sirius_init.m | 25,561 | utf_8 | d0da72c931aae9c0b895779f102799a0 | function sirius_init
%SIRIUSINIT - MML initialization file for the VUV ring at sirius3
%
% See also setoperationalmode
% 2012-07-10 Modificado para sirius3_lattice_e025 - Afonso
setao([]);
setad([]);
% Base on the location of this file
[SIRIUS_ROOT, ~, ~] = fileparts(mfilename('fullpath'));
root_fold... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_si_multipole_systematic_errors.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V22.01/sirius_si_multipole_systematic_errors.m | 9,062 | utf_8 | f0c0a10dece8718256f7f6bd92eaeae0 | function the_ring = sirius_si_multipole_systematic_errors(the_ring,fam_data)
% multipole order convention: n=0(dipole), n=1(quadrupole), and so on.
% ---- current model of sextupoles ---
% SEXTUPOLES COILS
% ================
fams = {'SN'};
r0 = 12/1000;
% systematic multipoles from '2017-02-24_SI_Sextupo... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_si_lattice_errors_analysis.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V22.01/sirius_si_lattice_errors_analysis.m | 19,806 | utf_8 | 7d964c054d6feb987bd9ffdb556b84ff | function machine = sirius_si_lattice_errors_analysis()
fprintf('\n')
fprintf('Lattice Errors Run\n');
fprintf('==================\n');
% first step is to initialize global auxiliary structures
name = 'CONFIG'; name_saved_machines = name;
initializations();
% next a nominal model is chosen for the study
the_ring = c... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/BO.V05.01/setoperationalmode.m | 6,150 | utf_8 | 95392618227d10538e7b32f33bfc8a68 | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
% ModeNumber = 1. 3 GeV {Default}
% 2. 150 MeV
%
%
% History
%
% 2011-06-02 new version (Ximenes)
% Check if the AO exists
%checkforao;
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_bo_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/BO.V05.01/sirius_bo_lattice.m | 14,521 | ibm852 | f87e8b823df6005df1316f0788821b4f | function [the_ring, lattice_title] = sirius_bo_lattice(varargin)
%
% 2012-08-15 maquina com simetria 50, formada por dipolos e quadrupolos com sextupolos integrados - Fernando
% 2014-04-10 modelo segmentado dos dipolos, mudança de padrao para baixa energia.
% 2015-09-03 novo modelo QD: Leff = 100.74 mm - Ximenes.
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_bo_multipole_systematic_errors.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/BO.V05.01/sirius_bo_multipole_systematic_errors.m | 5,452 | utf_8 | a37942d51efc3b688ab276d1239c3390 | function the_ring = sirius_bo_multipole_systematic_errors(the_ring)
% multipole order convention: n=0(dipole), n=1(quadrupole), and so on.
fam_data = sirius_bo_family_data(the_ring);
% DIPOLES
% =======
% Already applied while building AT lattice with segmented dipole model.
% QUADRUPOLES
% ===========
% Alre... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_bo_init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/BO.V05.01/sirius_bo_init.m | 26,928 | utf_8 | a182f99f696cc3e16767415007fc2b92 | function sirius_bo_init(OperationalMode)
if nargin < 1
OperationalMode = 1;
end
setao([]);
setad([]);
% Base on the location of this file
[SIRIUS_ROOT, ~, ~] = fileparts(mfilename('fullpath'));
AD.Directory.ExcDataDir = '/home/fac_files/lnls-sirius/control-system-constants/magnet/excitation-data'... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/BO.V500/setoperationalmode.m | 5,218 | utf_8 | 53263774a28bb1d90eb9a13fcda491b1 | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
% ModeNumber = 1. 3 GeV {Default}
% 2. 150 MeV
%
%
% History
%
% 2011-06-02 new version (Ximenes)
% Check if the AO exists
%checkforao;
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_booster_init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/BO.V500/sirius_booster_init.m | 18,918 | utf_8 | 651f50cd3e4ac1f764fc1de516fb5c92 | function sirius_booster_init(OperationalMode)
if nargin < 1
OperationalMode = 1;
end
setao([]);
setad([]);
% Base on the location of this file
[SIRIUS_ROOT, FileName, ExtentionName] = fileparts(mfilename('fullpath'));
AD.Directory.ExcDataDir = [SIRIUS_ROOT, filesep, 'excitation_curves'];
AD... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_bo_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/BO.V500/sirius_bo_lattice.m | 4,710 | utf_8 | 26f04d166d6c42c50eb28c1ba0437724 | function r = sirius_bo_lattice(varargin)
%maquina com simetria 50, formada por dipolos e quadrupolos com sextupolos
%integrados. 15/08/2012 - Fernando.
%%% HEADER SECTION %%%
global THERING
const = lnls_constants;
energy = 3e9; % eV
for i=1:length(varargin)
energy = varargin{i} * 1e9;
end
harmoni... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TB.V02.01/setoperationalmode.m | 7,020 | utf_8 | c4dc6b2e93f323f62662f3db538f18ce | function setoperationalmode(ModeNumber)
% Check if the AO exists
checkforao;
% MODES
ModeCell = { ...
'150 MeV - M1', ...
'150 MeV - M2', ...
'150 MeV - M3', ...
'150 MeV - M4', ...
'150 MeV - M5', ...
'150 MeV - M6', ...
};
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Accelerator Depend... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_tb_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TB.V02.01/sirius_tb_lattice.m | 8,400 | utf_8 | d75ae262a7b2dafc5b495627d7858f4d | function [r, lattice_title, IniCond] = sirius_tb_lattice(varargin)
% 2013-08-19 created Fernando.
% 2013-12-02 V200 - from OPA (Ximenes)
% 2014-10-20 V300 - new version (Liu)
% 2015-08-26 V01 - new version (Liu)
% 2016-09-28 V01.02 - new version (Ximenes)
% 2017-08-25 V02.01 - new dipole model 02 (Ximenes) - see... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_tb_init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TB.V02.01/sirius_tb_init.m | 28,077 | utf_8 | f4848193ee565449aa36081233a774f1 | function sirius_tb_init(OperationalMode)
%SIRIUS_TB_INIT - MML initialization file for the TB at sirius
%
% See also setoperationalmode
% 2013-12-02 Inicio (Ximenes)
setao([]);
setad([]);
AD.Directory.ExcDataDir = '/home/fac_files/lnls-sirius/control-system-constants/magnet/excitation-data';
setad(... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TB.V02.02/setoperationalmode.m | 7,020 | utf_8 | 92edbba448c2c189e5e25394b1513a56 | function setoperationalmode(ModeNumber)
% Check if the AO exists
checkforao;
% MODES
ModeCell = { ...
'150 MeV - M1', ...
'150 MeV - M2', ...
'150 MeV - M3', ...
'150 MeV - M4', ...
'150 MeV - M5', ...
'150 MeV - M6', ...
};
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Accelerator Depend... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_tb_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TB.V02.02/sirius_tb_lattice.m | 8,400 | utf_8 | 771884f6a380d6f2931f407c9945c314 | function [r, lattice_title, IniCond] = sirius_tb_lattice(varargin)
% 2013-08-19 created Fernando.
% 2013-12-02 V200 - from OPA (Ximenes)
% 2014-10-20 V300 - new version (Liu)
% 2015-08-26 V01 - new version (Liu)
% 2016-09-28 V01.02 - new version (Ximenes)
% 2017-08-25 V02.01 - new dipole model 02 (Ximenes) - see... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_tb_init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TB.V02.02/sirius_tb_init.m | 28,077 | utf_8 | f4848193ee565449aa36081233a774f1 | function sirius_tb_init(OperationalMode)
%SIRIUS_TB_INIT - MML initialization file for the TB at sirius
%
% See also setoperationalmode
% 2013-12-02 Inicio (Ximenes)
setao([]);
setad([]);
AD.Directory.ExcDataDir = '/home/fac_files/lnls-sirius/control-system-constants/magnet/excitation-data';
setad(... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/BO.V700/setoperationalmode.m | 5,218 | utf_8 | 7253487fe3b6156b3b9ab6a96c7851f1 | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
% ModeNumber = 1. 3 GeV {Default}
% 2. 150 MeV
%
%
% History
%
% 2011-06-02 new version (Ximenes)
% Check if the AO exists
%checkforao;
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_booster_init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/BO.V700/sirius_booster_init.m | 18,919 | utf_8 | 12f322648f44f956c0b69b46898aa081 | function sirius_booster_init(OperationalMode)
if nargin < 1
OperationalMode = 1;
end
setao([]);
setad([]);
% Base on the location of this file
[SIRIUS_ROOT, FileName, ExtentionName] = fileparts(mfilename('fullpath'));
AD.Directory.ExcDataDir = [SIRIUS_ROOT, filesep, 'excitation_curves'];
AD... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_bo_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/BO.V700/sirius_bo_lattice.m | 6,631 | utf_8 | ca49a7c70875a81a31155a1a7b0db85c | function r = sirius_bo_lattice(varargin)
%maquina com simetria 50, formada por dipolos e quadrupolos com sextupolos
%integrados. 15/08/2012 - Fernando.
%%% HEADER SECTION %%%
global THERING
const = lnls_constants;
energy = 3e9; % eV
for i=1:length(varargin)
energy = varargin{i} * 1e9;
end
harmonic_... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V16.01/setoperationalmode.m | 5,447 | utf_8 | d7cc175df7a55697e82d2e1ee748a5e1 | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
%
% History
%
% 2012-08-29 Ximenes
% Check if the AO exists
checkforao;
% MODES
ModeCell = { ...
'3 GeV - S05 (default)', ...
'3 GeV - S10', ...
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_si_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V16.01/sirius_si_lattice.m | 19,446 | utf_8 | 9a32c1d071ddb71f3f2c9670e15711e6 | function [r, lattice_title] = sirius_si_lattice(varargin)
% the_ring = sirius_si_lattice : retorna o modelo atual do anel;
%
% the_ring = sirius_si_lattice(mode) : Ateh o momento, pode ser 'A', 'B' or 'C'(default).
%
% the_ring = sirius_si_lattice(mode,version): mode_version define o ponto de operacao
% ... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V16.01/sirius_init.m | 25,776 | utf_8 | 8477660d584ff950a12092eecfdea7e5 | function sirius_init
%SIRIUSINIT - MML initialization file for the VUV ring at sirius3
%
% See also setoperationalmode
% 2012-07-10 Modificado para sirius3_lattice_e025 - Afonso
setao([]);
setad([]);
% Base on the location of this file
[SIRIUS_ROOT, ~, ~] = fileparts(mfilename('fullpath'));
AD.Dire... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_si_multipole_systematic_errors.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V16.01/sirius_si_multipole_systematic_errors.m | 3,923 | utf_8 | b73799cd2c5631b4f8be606409c722f3 | function the_ring = sirius_si_multipole_systematic_errors(the_ring,fam_data)
% multipole order convention: n=0(dipole), n=1(quadrupole), and so on.
% ---- current model of sextupoles ---
% SEXTUPOLES
% ==========
fams = {'sn'};
r0 = 12/1000;
% systematic multipoles from '2016-01-29 Sextupolo_Anel_S_Model... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V15.01/setoperationalmode.m | 5,447 | utf_8 | 80ad693b356362126ce0d768e9f323c2 | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
%
% History
%
% 2012-08-29 Ximenes
% Check if the AO exists
checkforao;
% MODES
ModeCell = { ...
'3 GeV - S10 (default)', ...
'3 GeV - S05', ...
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_si_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V15.01/sirius_si_lattice.m | 21,081 | utf_8 | b04ca7eaba3f4f5127cf5be003263d7e | function [r, lattice_title] = sirius_si_lattice(varargin)
% the_ring = sirius_si_lattice : retorna o modelo atual do anel;
%
% the_ring = sirius_si_lattice(mode) : Ateh o momento, pode ser 'A', 'B' or 'C'(default).
%
% the_ring = sirius_si_lattice(mode,version): mode_version define o ponto de operacao
% ... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V15.01/sirius_init.m | 26,035 | utf_8 | 08d3067c97758fea706c26b9357b5279 | function sirius_init
%SIRIUSINIT - MML initialization file for the VUV ring at sirius3
%
% See also setoperationalmode
% 2012-07-10 Modificado para sirius3_lattice_e025 - Afonso
setao([]);
setad([]);
% Base on the location of this file
[SIRIUS_ROOT, ~, ~] = fileparts(mfilename('fullpath'));
AD.Dire... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_si_multipole_systematic_errors.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V15.01/sirius_si_multipole_systematic_errors.m | 3,923 | utf_8 | b73799cd2c5631b4f8be606409c722f3 | function the_ring = sirius_si_multipole_systematic_errors(the_ring,fam_data)
% multipole order convention: n=0(dipole), n=1(quadrupole), and so on.
% ---- current model of sextupoles ---
% SEXTUPOLES
% ==========
fams = {'sn'};
r0 = 12/1000;
% systematic multipoles from '2016-01-29 Sextupolo_Anel_S_Model... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TS.V400/setoperationalmode.m | 3,533 | utf_8 | 8bbdd7e432c14aa16c1167014cec44f1 | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
% ModeNumber = 1. 3 GeV, AC20 {Default}
% 2. 3 GeV, AC10
%
% History
%
% 2013-12-02 Ximenes
% Check if the AO exists
checkforao;
% MODES
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_ts_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TS.V400/sirius_ts_lattice.m | 8,889 | utf_8 | 68e901e8550d3ca4d496d9329b6b6b02 | function [r, lattice_title, IniCond] = sirius_ts_lattice(varargin)
% 2013-11-26 created Ximenes (from V100)
%% global parameters
% =================
% --- system parameters ---
energy = 3e9;
lattice_version = 'TS.V400';
mode = 'M';
version = '0';
mode_version = [mode version];
% processamento de inp... |
github | lnls-fac/MatlabMiddleLayer-master | init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TS.V400/init.m | 19,362 | utf_8 | 83c60919845a65b9400cb57b29334639 | function ltba_init(OperationalMode)
%LNLSINIT - MML initialization file for the VUV ring at sirius3
% lnlsinit(OperationalMode)
%
% See also setoperationalmode
% 2013-12-02 Inicio (Ximenes)
setao([]);
setad([]);
% Base on the location of this file
[SIRIUS_ROOT, ~, ~] = fileparts(mfilename('fullpath... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V08/setoperationalmode.m | 6,235 | utf_8 | d4f1fa8656f80791cb519b47aad1d211 | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
% ModeNumber = 1. 3 GeV, AC20 {Default}
% 2. 3 GeV, AC10 betax = 4m
% 3. 3 GeV, AC10 betax = 1.5m
%
% History
%
% 2012-08-29 Ximenes
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V08/sirius_init.m | 43,058 | utf_8 | e8fa92aed279412a64a001d75c922345 | function sirius_init(OperationalMode)
%LNLSINIT - MML initialization file for the VUV ring at sirius3
% lnlsinit(OperationalMode)
%
% See also setoperationalmode
% 2012-07-10 Modificado para sirius3_lattice_e025 - Afonso
if nargin < 1
OperationalMode = 1;
end
setao([]);
setad([]);
% B... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_si_multipole_systematic_errors.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V08/sirius_si_multipole_systematic_errors.m | 4,586 | utf_8 | b52f092b5646c0a640699fce9e1aa566 | function the_ring = sirius_si_multipole_systematic_errors(the_ring)
% multipole order convention: n=0(dipole), n=1(quadrupole), and so on.
fam_data = sirius_si_family_data(the_ring);
% DIPOLES
% =======
% The default systematic multipoles for the dipoles were changed.
% Now we are using the values of a standard ... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TS.V300/setoperationalmode.m | 3,533 | utf_8 | 8b71bdfd4f9db67b4e1dd57dfe2d36df | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
% ModeNumber = 1. 3 GeV, AC20 {Default}
% 2. 3 GeV, AC10
%
% History
%
% 2013-12-02 Ximenes
% Check if the AO exists
checkforao;
% MODES
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_ts_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TS.V300/sirius_ts_lattice.m | 7,963 | utf_8 | 2e25bfb3ee922ab6015296fc24f7d334 | function [r, lattice_title, IniCond] = sirius_ts_lattice(varargin)
% 2013-11-26 created Ximenes (from V100)
%% global parameters
% =================
% --- system parameters ---
energy = 3e9;
lattice_version = 'TS.V300';
mode = 'M';
version = '0';
mode_version = [mode version];
% processamento de inp... |
github | lnls-fac/MatlabMiddleLayer-master | init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TS.V300/init.m | 17,188 | utf_8 | 0b7b229e2c077e54859044262377de4b | function ltba_init(OperationalMode)
%LNLSINIT - MML initialization file for the VUV ring at sirius3
% lnlsinit(OperationalMode)
%
% See also setoperationalmode
% 2013-12-02 Inicio (Ximenes)
setao([]);
setad([]);
% Base on the location of this file
[SIRIUS_ROOT, ~, ~] = fileparts(mfilename('fullpath... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V03/setoperationalmode.m | 6,233 | utf_8 | 9d58434c7a07336d5b12df1d8421d2dd | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
% ModeNumber = 1. 3 GeV, AC20 {Default}
% 2. 3 GeV, AC10 betax = 4m
% 3. 3 GeV, AC10 betax = 1.5m
%
% History
%
% 2012-08-29 Ximenes
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_si_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V03/sirius_si_lattice.m | 26,678 | utf_8 | 298e746f4fc5951f1ab067e4217f9104 | function [r, lattice_title] = sirius_si_lattice(varargin)
% r = sirius_si_lattice : retorna o modelo atual do anel;
%
% r = sirius_si_lattice(mode) : Ateh o momento, pode ser 'AC10'(default) or 'AC20'.
%
% r = sirius_si_lattice(mode,mode_version): mode_version define o ponto de operacao
% e a otimizac... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V03/sirius_init.m | 41,021 | utf_8 | 91f3f3ba3a94f860456caa15f14c89d7 | function sirius_init(OperationalMode)
%LNLSINIT - MML initialization file for the VUV ring at sirius3
% lnlsinit(OperationalMode)
%
% See also setoperationalmode
% 2012-07-10 Modificado para sirius3_lattice_e025 - Afonso
if nargin < 1
OperationalMode = 1;
end
setao([]);
setad([]);
% B... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_si_multipole_systematic_errors.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V03/sirius_si_multipole_systematic_errors.m | 4,462 | utf_8 | e5668951fb8d2520d527783986a71aa3 | function new_the_ring = sirius_si_multipole_systematic_errors(the_ring, parameters)
% multipole order convention: n=0(dipole), n=1(quadrupole), and so on.
parameter_just_print = (exist('parameters', 'var') && isfield(parameters, 'just_print') && (parameters.just_print));
new_the_ring = the_ring;
% DIPOLES
% =... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V401/setoperationalmode.m | 4,931 | utf_8 | 9ad698219dcc2898e08c37c1643eee25 | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
% ModeNumber = 1. 3 GeV, AC20 {Default}
% 2. 3 GeV, AC10
%
% History
%
% 2012-08-29 Ximenes
% Check if the AO exists
checkforao;
% MODES
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_si_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V401/sirius_si_lattice.m | 10,697 | UNKNOWN | 38338d48c9dccca397b4e0e8169503a7 | function r = sirius_si_lattice(varargin)
% 2012-08-28 Nova rede - Ximenes.
global THERING;
%% global parameters
% =================
% --- system parameters ---
energy = 3e9;
mode = 'AC10';
const = lnls_constants;
harmonic_number = 864;
% processamento de input (energia e modo de opera��o)
for ... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V401/sirius_init.m | 39,113 | utf_8 | f51d214e37fa4a5b5b629566b49de0f8 | function sirius_init(OperationalMode)
%LNLSINIT - MML initialization file for the VUV ring at sirius3
% lnlsinit(OperationalMode)
%
% See also setoperationalmode
% 2012-07-10 Modificado para sirius3_lattice_e025 - Afonso
if nargin < 1
OperationalMode = 1;
end
setao([]);
setad([]);
% B... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TS.V04.01/setoperationalmode.m | 4,655 | utf_8 | d74dec1abb8d3491722d515ad2e7508a | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
% ModeNumber = 1. 3 GeV, AC20 {Default}
% 2. 3 GeV, AC10
%
% History
%
% 2013-12-02 Ximenes
% Check if the AO exists
checkforao;
% MODES
... |
github | lnls-fac/MatlabMiddleLayer-master | aoinit.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TS.V04.01/aoinit.m | 518 | utf_8 | e0009e26ea046f8dcf5c2efee5e5c668 |
function aoinit(SubMachineName)
%AOINIT - Initialization function for the Matlab Middle Layer (MML)
% LNLS updated version of MML and AT files
MMLROOT = getmmlroot('IgnoreTheAD');
Directory = fullfile(MMLROOT, 'lnls', 'at-mml_modified_scripts');
if exist(Directory, 'dir')
addpath(Directory, '-begin');
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_ts_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TS.V04.01/sirius_ts_lattice.m | 8,674 | utf_8 | b5bf33a0dfd4f518935d409efe75dac6 | function [r, lattice_title, IniCond] = sirius_ts_lattice(varargin)
% 2013-11-26 created Ximenes (from V100)
% 2016-09-28 V01.02 - new version (Ximenes) - see 'VERSIONS.txt' in Release/machine/SIRIUS
%% global parameters
% =================
d2r = pi/180;
% --- system parameters ---
energy = 3e9;
lattice_v... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_ts_init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TS.V04.01/sirius_ts_init.m | 24,378 | utf_8 | 8243f20bf6345d6b84832efedca688c1 | function sirius_ts_init(OperationalMode)
%SIRIUS_TS_INIT - MML initialization file for the TS at sirius
% lnlsinit(OperationalMode)
%
% See also setoperationalmode
% 2013-12-02 Inicio (Ximenes)
setao([]);
setad([]);
AD.Directory.ExcDataDir = '/home/sirius/repos/control-system-constants/magnet/exci... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TS.V03.02/setoperationalmode.m | 4,649 | utf_8 | 7e84928b3059a8e088e8a16d589f31ac | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
% ModeNumber = 1. 3 GeV, AC20 {Default}
% 2. 3 GeV, AC10
%
% History
%
% 2013-12-02 Ximenes
% Check if the AO exists
checkforao;
% MODES
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_ts_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TS.V03.02/sirius_ts_lattice.m | 11,601 | utf_8 | 59ee00426a7f8b303645cc052c486ce8 | function [r, lattice_title, IniCond] = sirius_ts_lattice(varargin)
% 2013-11-26 created Ximenes (from V100)
% 2016-09-28 V01.02 - new version (Ximenes) - see 'VERSIONS.txt' in Release/machine/SIRIUS
%% global parameters
% =================
d2r = pi/180;
% --- system parameters ---
energy = 3e9;
lattice_... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_ts_init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TS.V03.02/sirius_ts_init.m | 25,315 | utf_8 | 6e8fdc093dadcab7a8d4a37881cf833c | function sirius_ts_init(OperationalMode)
%SIRIUS_TS_INIT - MML initialization file for the TS at sirius
% lnlsinit(OperationalMode)
%
% See also setoperationalmode
% 2013-12-02 Inicio (Ximenes)
setao([]);
setad([]);
% Base on the location of this file
[SIRIUS_ROOT, ~, ~] = fileparts(mfilename('full... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V00/setoperationalmode.m | 4,995 | utf_8 | 6cde37f6cbdaccdf281bfc5031528519 | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
% ModeNumber = 1. 3 GeV, AC20 {Default}
% 2. 3 GeV, AC10
%
% History
%
% 2012-08-29 Ximenes
% Check if the AO exists
checkforao;
% MODES
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_si_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V00/sirius_si_lattice.m | 16,170 | utf_8 | d14985811fc2441a05e1fdc254a0bacc | function r = sirius_si_lattice(varargin)
% r = sirius_si_lattice : retorna o modelo atual do anel;
%
% r = sirius_si_lattice(mode) : Ateh o momento, pode ser 'AC10'(default) or 'AC20'.
%
% r = sirius_si_lattice(mode,mode_version): mode_version define o ponto de operacao
% e a otimizacao sextupolar a s... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V00/sirius_init.m | 39,110 | utf_8 | 66ce993e3b18287c604f8e9dd9a2fa0c | function sirius_init(OperationalMode)
%LNLSINIT - MML initialization file for the VUV ring at sirius3
% lnlsinit(OperationalMode)
%
% See also setoperationalmode
% 2012-07-10 Modificado para sirius3_lattice_e025 - Afonso
if nargin < 1
OperationalMode = 1;
end
setao([]);
setad([]);
% B... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/BO.V900/setoperationalmode.m | 5,276 | utf_8 | 3876d78c58eb4d27c6faa54fa465a76c | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
% ModeNumber = 1. 3 GeV {Default}
% 2. 150 MeV
%
%
% History
%
% 2011-06-02 new version (Ximenes)
% Check if the AO exists
%checkforao;
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_booster_init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/BO.V900/sirius_booster_init.m | 14,178 | utf_8 | c24a879db6fe9c61b90fb3563be019de | function sirius_booster_init(OperationalMode)
if nargin < 1
OperationalMode = 1;
end
setao([]);
setad([]);
% Base on the location of this file
[SIRIUS_ROOT, ~, ~] = fileparts(mfilename('fullpath'));
AD.Directory.ExcDataDir = [SIRIUS_ROOT, filesep, 'excitation_curves'];
AD.Directory.LatticesDef = ... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_bo_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/BO.V900/sirius_bo_lattice.m | 7,406 | utf_8 | 1e13ae4fe864b26d49de8b0134c43ce9 | function [r, lattice_title] = sirius_bo_lattice(varargin)
%maquina com simetria 50, formada por dipolos e quadrupolos com sextupolos
%integrados. 15/08/2012 - Fernando.
% modelode segmentado dos dipolos. 10/04/2014
% mudan??a de padr??o para baixa energia.
%%% HEADER SECTION %%%
global THERING
energy = 0.1... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V02/setoperationalmode.m | 6,205 | utf_8 | 6be27a5d9af4baced251d5343b3586cb | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
% ModeNumber = 1. 3 GeV, AC20 {Default}
% 2. 3 GeV, AC10 betax = 4m
% 3. 3 GeV, AC10 betax = 1.5m
%
% History
%
% 2012-08-29 Ximenes
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_si_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V02/sirius_si_lattice.m | 17,207 | utf_8 | 4e43b00fd931b59051d9955a1d68c6dc | function r = sirius_si_lattice(varargin)
% r = sirius_si_lattice : retorna o modelo atual do anel;
%
% r = sirius_si_lattice(mode) : Ateh o momento, pode ser 'AC10'(default) or 'AC20'.
%
% r = sirius_si_lattice(mode,mode_version): mode_version define o ponto de operacao
% e a otimizacao sextupolar a s... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V02/sirius_init.m | 42,475 | utf_8 | a982c000beb6ab0f9cca3b82eb728e91 | function sirius_init(OperationalMode)
%LNLSINIT - MML initialization file for the VUV ring at sirius3
% lnlsinit(OperationalMode)
%
% See also setoperationalmode
% 2012-07-10 Modificado para sirius3_lattice_e025 - Afonso
if nargin < 1
OperationalMode = 1;
end
setao([]);
setad([]);
% B... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TS.V500/setoperationalmode.m | 3,533 | utf_8 | 8bbdd7e432c14aa16c1167014cec44f1 | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
% ModeNumber = 1. 3 GeV, AC20 {Default}
% 2. 3 GeV, AC10
%
% History
%
% 2013-12-02 Ximenes
% Check if the AO exists
checkforao;
% MODES
... |
github | lnls-fac/MatlabMiddleLayer-master | sirius_ts_lattice.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TS.V500/sirius_ts_lattice.m | 8,726 | utf_8 | f909215a439a46519efba2e359836b3d | function [r, lattice_title, IniCond] = sirius_ts_lattice(varargin)
% 2013-11-26 created Ximenes (from V100)
%% global parameters
% =================
% --- system parameters ---
energy = 3e9;
lattice_version = 'TS.V500';
mode = 'M';
version = '0';
mode_version = [mode version];
% processamento de inp... |
github | lnls-fac/MatlabMiddleLayer-master | init.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/TS.V500/init.m | 18,357 | utf_8 | 6e5811bef77ffc3324d850fe6bed4901 | function init(OperationalMode)
%LNLSINIT - MML initialization file for the VUV ring at sirius3
% lnlsinit(OperationalMode)
%
% See also setoperationalmode
% 2013-12-02 Inicio (Ximenes)
setao([]);
setad([]);
% Base on the location of this file
[SIRIUS_ROOT, ~, ~] = fileparts(mfilename('fullpath'));
... |
github | lnls-fac/MatlabMiddleLayer-master | setoperationalmode.m | .m | MatlabMiddleLayer-master/Release/machine/SIRIUS/SI.V14HE/setoperationalmode.m | 6,717 | utf_8 | bc813a68feca13f29f5baf5e681b7e0e | function setoperationalmode(ModeNumber)
%SETOPERATIONALMODE - Switches between the various operational modes
% setoperationalmode(ModeNumber)
%
%
% History
%
% 2012-08-29 Ximenes
% Check if the AO exists
checkforao;
% MODES
ModeCell = { ...
'3 GeV - A', ...
'3 GeV - B', ...
'3 GeV - C... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.