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
thickmpoleraddiffm.m
.m
MatlabMiddleLayer-master/Release/at/atphysics/thickmpoleraddiffm.m
1,708
utf_8
cc43d4f668b8b722cf435a9b6b4b175c
function [Bcum, Mcum, r] = findthickmpoleraddifm(rin, PolynomA, PolynomB,L, irho, E0, max_order,num_steps) %FINDTHICKMPOLERADDIFFM % Fourth order-symplectic integrator constants persistent DRIFT1 DRIFT2 KICK1 KICK2 if isempty(DRIFT1) DRIFT1 = 0.6756035959798286638; DRIFT2 = -0.1756035959798286639; ...
github
lnls-fac/MatlabMiddleLayer-master
twissring.m
.m
MatlabMiddleLayer-master/Release/at/atphysics/twissring.m
6,171
utf_8
2efd14352a625b209a8ec51aa52eb709
function [TD, varargout] = twissring(RING,DP,varargin); %TWISSRING calculates linear optics functions for an UNCOUPLED ring % % [TwissData, tune] = TWISSRING(LATTICE,DP) calculates twiss parameters % and closed orbit coordinates at the RING entrance assuming % constant energy deviation DP. % % [TwissData...
github
lnls-fac/MatlabMiddleLayer-master
findthickmpoleraddiffm.m
.m
MatlabMiddleLayer-master/Release/at/atphysics/findthickmpoleraddiffm.m
1,708
utf_8
cc43d4f668b8b722cf435a9b6b4b175c
function [Bcum, Mcum, r] = findthickmpoleraddifm(rin, PolynomA, PolynomB,L, irho, E0, max_order,num_steps) %FINDTHICKMPOLERADDIFFM % Fourth order-symplectic integrator constants persistent DRIFT1 DRIFT2 KICK1 KICK2 if isempty(DRIFT1) DRIFT1 = 0.6756035959798286638; DRIFT2 = -0.1756035959798286639; ...
github
lnls-fac/MatlabMiddleLayer-master
twissline.m
.m
MatlabMiddleLayer-master/Release/at/atphysics/twissline.m
6,207
utf_8
1aea5d7cf6491aac733f05b28be516a3
function [TD, varargout] = twissline(LINE,DP,TWISSDATAIN,varargin) %TWISSLINE calculates linear optics functions for an UNCOUPLED transport line % % TwissData = TWISSLINE(LATTICE,DP,TWISSDATAIN) propagates twiss % parameters and closed orbit coordinates from the LINE entrance % given by TWISSDATAIN assumin...
github
lnls-fac/MatlabMiddleLayer-master
setlocodata.m
.m
MatlabMiddleLayer-master/Release/machine/VUV/800MeV/setlocodata.m
9,328
utf_8
36990e75102bac76e68cb8750c6492af
function setlocodata(CommandInput, FileName) %SETLOCODATA - Applies the LOCO calibration data to both the middle layer & the accelerator % setlocodata(CommandInput, FileName) % % INPUTS % 1. CommandInput % 'Nominal' - Sets nominal gains (1) / rolls (0) to the model. % 'Default' - Transfer the d...
github
lnls-fac/MatlabMiddleLayer-master
aoinit.m
.m
MatlabMiddleLayer-master/Release/machine/ALBA/Booster/aoinit.m
1,653
utf_8
ad2bbeb796ba6e7298ec1c5a19a48b05
function aoinit(SubMachineName) %AOINIT - Initialization function for the Matlab Middle Layer (MML) % % % See Also boosterinit, setpathbooster, updateatindex, setoperationalmode % Written by Laurent S. Nadolski, modified by Gabriele Benedetti if exist('SubMachineName', 'var') && ~strcmpi(SubMachineName, SubM...
github
lnls-fac/MatlabMiddleLayer-master
setoperationalmode.old.m
.m
MatlabMiddleLayer-master/Release/machine/ALBA/Booster/setoperationalmode.old.m
10,370
utf_8
7d150aa0cdc0dd7484234e7003933ca1
function setoperationalmode(ModeNumber) %SETOPERATIONALMODE - Switches between the various operational modes % setoperationalmode(ModeNumber) % % INPUTS % 1. ModeNumber = 1. 3.0 GeV, User Mode % 2. 3.0 GeV, Model % % See also aoinit, updateatindex, boosterinit % % Written by Gabriele Be...
github
lnls-fac/MatlabMiddleLayer-master
tunemml.m
.m
MatlabMiddleLayer-master/Release/machine/ALBA/common/configurations/tunemml.m
2,877
utf_8
57b87c525483b6b41f326185804e108e
function varargout = tunemml(varargin) % TUNEMML M-file for tunemml.fig % TUNEMML, by itself, creates a new TUNEMML or raises the existing % singleton*. % % H = TUNEMML returns the handle to a new TUNEMML or the handle to % the existing singleton*. % % TUNEMML('CALLBACK',hObject,eventData,handl...
github
lnls-fac/MatlabMiddleLayer-master
tango_staticdb_config.m
.m
MatlabMiddleLayer-master/Release/machine/ALBA/common/database/tango_staticdb_config.m
35,707
utf_8
33a3d6e09891f451f457306069582085
function varargout = tango_staticdb_config(varargin) % TANGO_STATICDB_EDITOR M-file for tango_staticdb_config.fig % TANGO_STATICDB_EDITOR, by itself, creates a new TANGO_STATICDB_EDITOR or raises the existing % singleton*. % % H = TANGO_STATICDB_EDITOR returns the handle to a new TANGO_STATICDB_EDITOR or...
github
lnls-fac/MatlabMiddleLayer-master
aoinit.m
.m
MatlabMiddleLayer-master/Release/machine/ALBA/StorageRing/aoinit.m
1,500
utf_8
a8360fe63b870c26975ab678d288f30f
function aoinit(SubMachineName) %AOINIT - Initialization function for the Matlab Middle Layer (MML) % % % See Also albainit, setpathalba, updateatindex, setoperationalmode % Written by Laurent S. Nadolski if exist('SubMachineName', 'var') && ~strcmpi(SubMachineName, SubMachineName) error('Wrong SubMachi...
github
lnls-fac/MatlabMiddleLayer-master
orbitcontrol.m
.m
MatlabMiddleLayer-master/Release/machine/ALBA/StorageRing/orbitcontrol.m
78,889
utf_8
03986672e2ca797f0681588ed8b9337f
function orbitcontrol(action, Input2, Input3) %ORBITCONTROL - GUI for orbit correction and SOFB % % INPUTS % None to launch the programme % 1. action - Callback to execute % 2. Input2 - First argument for callback function % 3. Input3 First argument for callback function % % OUPUTS % None % % NOTES...
github
lnls-fac/MatlabMiddleLayer-master
reforb2zero.m
.m
MatlabMiddleLayer-master/Release/machine/ALBA/StorageRing/orbit/reforb2zero.m
641
utf_8
973e57ead21176ca4d367fd4ba3a9490
%============================================================= function varargout=RefOrb2Zero(varargin) %============================================================= %load zeros into reference orbit and associated fields bpm = varargin{1}; for ii=1:2 %horizontal and vertical ntbpm = le...
github
lnls-fac/MatlabMiddleLayer-master
getrdbdata.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/Applications/history/getrdbdata.m
13,685
utf_8
026d496bf5f688484286083b4daf6625
function [data, t, ColumnNames] = getrdbdata(StartTime, EndTime, HistoryName, Table, sourceName, ConvertTimeFlag) % [Data, t, ColumnNames] = getrdbdata(StartTime, EndTime, HistoryBufferName, Table, DatabaseName) % % INPUTS % 1-2. StartTime and EndTime can be a string in the Oracle format, % yyyy-mm-d...
github
lnls-fac/MatlabMiddleLayer-master
plotwaveform_ad.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/Applications/plotwaveform/plotwaveform_ad.m
641
utf_8
faf41caf71fbdfeddc29eab34ef8b691
%=========================== function AD=plotwaveform_ad %%%%%%%% plotwaveform_ad %%%%%%%%% %=========================== AD=[]; AD.Directory.PlotWaveform.GUN='R:\Controls\matlab\machine\spear3data\Waveforms\GUN\'; AD.Directory.PlotWaveform.GTL='R:\Controls\matlab\machine\spear3data\Wavef...
github
lnls-fac/MatlabMiddleLayer-master
plotwaveform.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/Applications/plotwaveform/plotwaveform.m
84,942
utf_8
e466f856dc51ec2b0f779478255d839a
% PJ BOussina waveform loader September 11, 2006 % Just for fun nothing serious % If you don't like it too bad, make it yourself % Have FUN %========================== function plotwaveform(status) %========================== %declare main structures SYS=[]; WAV=[]; AO=[]; AD=[]; if exist(...
github
lnls-fac/MatlabMiddleLayer-master
plotwaveform_ao.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/Applications/plotwaveform/plotwaveform_ao.m
6,239
utf_8
df522477d60fc8a7735e6c12865a5e29
%============================== function AO=PlotWaveformAO(status) %%%%%%%% PlotWaveformAO %%%%%%%%% %============================== AO=[]; if strcmpi(status,'online') try LINTR1_timebase=getpv('LIN-TR1:TimeDelta'); LINTR2_timebase=getpv('LIN-TR2:TimeDelta'); LINTR3_timeb...
github
lnls-fac/MatlabMiddleLayer-master
configgui.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/Applications/configurations/configgui.m
26,249
utf_8
87083f86945ac9c8aad54e14481cb7dc
%============================================================= function varargout = configgui(action, varargin) %============================================================= % configgui - generate gui for configuration control % to launch: >>configgui (no input arguement) h=findobj(0,'Tag','cnffig'); i...
github
lnls-fac/MatlabMiddleLayer-master
injectgui.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/Applications/injection/injectgui.m
10,784
utf_8
075d96f490a39f9f74874e69f6e1ed91
%============================================================= function varargout = maingui(action, varargin) %============================================================= % maingui contains routines to set up the main orbit control panel % for the 'orbit' program global THERING injectfig = findobj(0,'tag','inj...
github
lnls-fac/MatlabMiddleLayer-master
simgui.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/Applications/injection/simgui.m
4,678
utf_8
cc635f7d126ca8fabd723a1bd42c83b6
%============================================================= function varargout = simgui(action, varargin) %============================================================= % bpmgui controls orbit manipulation and plotting global FAMLIST THERING injfig = findobj(0,'tag','injfig'); %injfig "global" ah.bpm=findobj...
github
lnls-fac/MatlabMiddleLayer-master
readresp_po.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/Applications/lattices/response/readresp_po.m
5,614
utf_8
fb252dcfdebadf3f6b5383f239e491e0
%*********************** function test5 %*********************** %This function attempts to read from the file RESP99_13.DAT into %the response matrix. fid = fopen('resp99_13.dat','r'); for i = 1:4 fgetl(fid); end a = fgetl(fid); i = 1; [ntbpm,i] = getWord(a,i); ntbpm = str2num(ntbpm); [nbpmx,i] = getWord(a,i);...
github
lnls-fac/MatlabMiddleLayer-master
testfindLSmin.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/StorageRing/testfindLSmin.m
1,682
utf_8
a4f69aa1067b0cb34e32ceb75c427673
function v=testfindLSmin(varargin) %this is an example showing how to use findLSmin.m %the problems are drawon from More's paper % opt = 1; switch opt case 1 p0 = [-1, 0, 0]'; [pm,chi2,hist] = findLSmin(@fFlectherPowell, p0); case 2 p0 = [25, 5, -5, 1]'; [pm,chi2,hist] = findLSmin( @fBrow...
github
lnls-fac/MatlabMiddleLayer-master
adlifetime.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/StorageRing/adlifetime.m
4,264
utf_8
69b92efa065ae77a1412dc2ade7abf62
function [tau, dtau, DCCT,tout] = adlifetime(varargin) %adlifetime - Measures the lifetime using an exponential least squares fit %to beam current with adaptive data acquisition to guaranteer fixed error %bar. % [tau, dtau, DCCT,tout] = adlifetime % [tau, dtau, DCCT,tout] = adlifetime(t), tout is a vector of ...
github
lnls-fac/MatlabMiddleLayer-master
autopilot.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/StorageRing/autopilot.m
25,813
utf_8
df392da0f31c8dc07c01cc01d9a92f94
function autopilot(action,varargin) %============================================================= % Auto Pilot Automated bucket selection software % % This routine automatically cycles through the current fill % pattern at 5 Hz. Option to reset to 1st bucket when 96mA % SPEAR current is stored (for "mondo" bu...
github
lnls-fac/MatlabMiddleLayer-master
adlifetimeraw.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/StorageRing/adlifetimeraw.m
3,636
utf_8
857da285f08db91d09cb5c7761b353fb
function [tau, dtau, DCCT, tout] = adlifetimeraw(varargin) %measure lifetime from raw DCCT data % % [tau, dtau, DCCT, tout] = adlifetimeraw % [tau, dtau, DCCT, tout] = adlifetimeraw(T), T>1 is a scalar in seconds % [tau, dtau, DCCT, tout] = adlifetimeraw(err), err<1 is a scalar, fractional error % bar err ...
github
lnls-fac/MatlabMiddleLayer-master
findLSmin_lite.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/StorageRing/findLSmin_lite.m
5,446
utf_8
8b9cf521bd31e83d011de061612f9922
function [pm,chi2,reshist] = findLSmin_lite(cfun, p0, varargin) %[pm,chi2,reshist] = findLSmin_lite(cfun, p0, varargin) %[pm,chi2,reshist] = findLSmin_lite(cfun, p0, delta_p) %[pm,chi2,reshist] = findLSmin_lite(cfun, p0, delta_p, LMoption) %This is a wrapper of the least square code "lemafit.m" (X. Huang, 2003) whi...
github
lnls-fac/MatlabMiddleLayer-master
testfindLSmin_lite.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/StorageRing/testfindLSmin_lite.m
1,773
utf_8
aaf84584c3c25dca7d14527948e0d2da
function v=testfindLSmin(varargin) %this is an example showing how to use findLSmin.m %the problems are drawon from More's paper % opt =1; switch opt case 1 p0 = [-1, 0, 0]'; [pm,chi2,hist] = findLSmin_lite(@fFlectherPowell, p0); %[pm,chi2,hist] = findLSmin(@fFlectherPowell, p0); case 2 p0 ...
github
lnls-fac/MatlabMiddleLayer-master
findLSmin.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/StorageRing/findLSmin.m
7,177
utf_8
f101838d032e566275b98fb6094d0d04
function [pm,chi2,reshist] = findLSmin(cfun, p0, varargin) %[pm,chi2,reshist] = findLSmin(cfun, p0, varargin) %[pm,chi2,reshist] = findLSmin(cfun, p0, delta_p) %[pm,chi2,reshist] = findLSmin(cfun, p0, delta_p, LMoption) %This is an implementation of the LM algorithm as described by %"The Levenberg-Marquadt Algori...
github
lnls-fac/MatlabMiddleLayer-master
SPEARCorCheck.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/StorageRing/SPEARCorCheck.m
875
utf_8
4f1ac382fa96b650c3d72702a6ebf89d
%============================================================= function [varargout] = SPEARCorCheck %============================================================= %checks for invalid corrector entries %create COR.status vector with valid indices mode=getfamilydata('HCM','Monitor','Mode'); if strcmpi(mode,'ONLIN...
github
lnls-fac/MatlabMiddleLayer-master
ipfaw.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/StorageRing/ipfaw.m
5,080
utf_8
184e10a311e727a348fcf5dfaa9c400e
function [coff,freq,data] = ipfaw(data,varargin) %Using interpolated-FFT to determine the tunes of a signal within a window %[coff,freq,data] = ipfaw(data) % extract the highest peak for window [0, 0.5], data is a vector %[coff,freq,data] = ipfaw(data, window) % extract the highest peak within the given win...
github
lnls-fac/MatlabMiddleLayer-master
SPEARBPMCheck.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/StorageRing/SPEARBPMCheck.m
885
utf_8
e3e49010878ad0552baf4f9305e76731
%============================================================= function [varargout] = SPEARBPMCheck %============================================================= %checks for bad bpm entries %create BPM.status vector with valid indices contained in total bpm vector itbpm mode=getfamilydata('BPMx','Monitor'...
github
lnls-fac/MatlabMiddleLayer-master
HW2OpticsDeck.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/StorageRing/HW2OpticsDeck.m
8,099
utf_8
2d5e0510aacb299ca6086a374a8e8cf5
function HW2OpticsDeck(SkeletonFile,varargin) % HW2OpticsDeck(SkeletonFile) % e.g. HW2OpticsDeck(AD.Deck.MADSkeleton_Group) % % Save DIMAD deck or MAD deck or AT deck or with physics units % skeletonfiletype = name of the skeleton file % % J. Corbett April 12, 2003 % see HW2OpticsDeck.doc [varargin,monitorf...
github
lnls-fac/MatlabMiddleLayer-master
setlocodata.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/StorageRing/setlocodata.m
8,469
utf_8
1336af3c82b2695602d75b0e9acceac7
function setlocodata(CommandInput, FileName) %SETLOCODATA - Puts the BPM and correctors gain in the middle layer AO % setlocodata(CommandInput, LOCOFileName) % setlocodata is the same as setlocodata('Default') % setlocodata(LOCOFileName) % % INPUTS % 1. CommandInput % 'Default' - Transfer the ALS...
github
lnls-fac/MatlabMiddleLayer-master
setoperationalmode_spear.m
.m
MatlabMiddleLayer-master/Release/machine/SPEAR3/StorageRing/setoperationalmode_spear.m
18,430
utf_8
9b75dd302e65e6f46deb11e14738d484
function setoperationalmode(ModeNumber) % setoperationalmode(ModeNumber) % % This function is used to set the path and model for a particular operational mode. % NOTE: This function assumes that the AO has already setup with spear3init % % INPUTS % ModeNumber = 0 Development Lattice % ModeNumber = 1 Achr...
github
lnls-fac/MatlabMiddleLayer-master
getBPMstate.m
.m
MatlabMiddleLayer-master/Release/machine/MLS/StorageRing/getBPMstate.m
540
utf_8
591e9ffddc98408abbf5547c1fc94fea
%getBPMstate - List all BPM States % SYNTAX: % getBPMstate % Example: % getBPMstate % % INPUTS: % NONE % % OUTPUT: % List all BPM States % % Written by Dennis Engel function getBPMstate x = getfamilydata('BPMx'); y = getfamilydata('BPMy'); fsprintf('\tX\t\tState\t|\tY\t\tState\n'); for i=1:size(x....
github
lnls-fac/MatlabMiddleLayer-master
camdinit.m
.m
MatlabMiddleLayer-master/Release/machine/CAMD/StorageRing/camdinit.m
21,765
utf_8
363544a8123edd2d2c355ef73e9e48df
function camdinit(OperationalMode) %CAMDINIT - MML initialization function for CAMD % To do: % 1. All families need channel names (getname_camd), max/min, tol, etc. % 2. amp2k and k2amp need work! % 3. Tune family needs work. % 4. If you want to work at different energies, bend2gev and gev2bend need work. % ...
github
lnls-fac/MatlabMiddleLayer-master
boosterinit.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/Booster/boosterinit.m
48,839
utf_8
b88777b92523a73d80295f42fcec239a
function boosterinit(OperationalMode) %BOOSTERINIT - Initialization function of the ALS booster % 1. Check SP and AM for all magnets (proper channel names) % % if nargin < 1 % 1 => 1.9 GeV injection % 2 => 1.23 GeV injection % 3 => 1.522 GeV injection OperationalMode = 1; end ...
github
lnls-fac/MatlabMiddleLayer-master
setoperationalmode.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/Booster/setoperationalmode.m
11,609
utf_8
cc84e150eaf3d965b319c919a050338b
function setoperationalmode(ModeNumber) %SETOPERATIONALMODE - Switches between the various operational modes % setoperationalmode(ModeNumber) % % ModeNumber = 1. '1.9 GeV Injection' % 2. '1.5 GeV Injection % 999. 'Greg's Mode' % % See also aoinit, updateatindex, alsinit global ...
github
lnls-fac/MatlabMiddleLayer-master
resetudferrors.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/Booster/resetudferrors.m
3,534
utf_8
5cb2f0e33e5f978674a5236242ddd99e
function resetudferrors % Clear RF ramp UDF errors setpv('li14-40:ENABLE_RAMP.UDF', 0); setpv('li14-40:SET_TABLE_LEN.UDF', 0); setpv('li14-40:SET_TABLE_DELAY.UDF', 0); setpv('li14-40:SWAP_TABLE.UDF', 0); % SF & SD setpv('BR1_____SF___REBC00.UDF', 0); setpv('BR1_____SF___REBM00.UDF', 0); setpv('BR1_____SF___GNAC00.U...
github
lnls-fac/MatlabMiddleLayer-master
brcontrol.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/Booster/brcontrol.m
16,076
utf_8
f368e7c22057553b167af3d844d78d27
function varargout = brcontrol(varargin) %BRCONTROL M-file for brcontrol.fig % BRCONTROL, by itself, creates a new BRCONTROL or raises the existing % singleton*. % % H = BRCONTROL returns the handle to a new BRCONTROL or the handle to % the existing singleton*. % % BRCONTROL('Property','Value',...
github
lnls-fac/MatlabMiddleLayer-master
setoperationalmode.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/GTB/setoperationalmode.m
10,502
utf_8
d20dd62c11fa8e268a7d467657bfccd8
function setoperationalmode(ModeNumber) %SETOPERATIONALMODE - Switches between the various operational modes % setoperationalmode(ModeNumber) % % ModeNumber = 1. '1.9 GeV Injection' % 2. '1.23 GeV Injection % 3. '1.522 GeV Injection % 999. 'Greg's Mode' % % See als...
github
lnls-fac/MatlabMiddleLayer-master
resetudferrors.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/GTB/resetudferrors.m
1,398
utf_8
12b3b8a08ca015f1ba49220b85576f4e
function resetudferrors fprintf(' Reseting the UDF field on the GTB.\n'); Families = {'HCM','VCM','Q','BEND','SOL'}; for i = 1:length(Families) UDF_Local(Families{i}, 'Setpoint'); UDF_Local(Families{i}, 'Monitor'); %UDF_Local(Families{i}, 'RampRate'); %UDF_Local(Families{i}, 'TimeConstant'); UDF_...
github
lnls-fac/MatlabMiddleLayer-master
checkudferrors.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/GTB/checkudferrors.m
1,062
utf_8
dcc7fc9f7e0245c08fb60ed24a411e34
function checkudferrors Families = {'HCM','VCM','Q','BEND','SOL'}; Fields = {'Setpoint', 'OnControl', 'Monitor'}; % , 'RampRate', 'TimeConstant', 'Ready', 'Reset' for i = 1:length(Families) for j = 1:length(Fields) UDF_Local(Families{i}, Fields{j}); end end UDF_Local('AS', 'Setpoint'); UDF_Local('AS...
github
lnls-fac/MatlabMiddleLayer-master
gtbcontrol.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/GTB/gtbcontrol.m
9,603
utf_8
dfcf9256edf3e941df59a5601af1ed31
function varargout = gtbcontrol(varargin) %GTBCONTROL M-file for gtbcontrol.fig % GTBCONTROL, by itself, creates a new GTBCONTROL or raises the existing % singleton*. % % H = GTBCONTROL returns the handle to a new GTBCONTROL or the handle to % the existing singleton*. % % GTBCONTROL('Property',...
github
lnls-fac/MatlabMiddleLayer-master
readepicsstriptool.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/Common/readepicsstriptool.m
2,310
utf_8
01a04cb86e7661b38b001086dcbbdf2c
function [d, Date, ChannelName] = readepicsstriptool(FileName, N) %READEPICSSTRIPTOOL - Read the data from an EPICS striptool file save % [d, Date, ChannelName] = readepicsstriptool(FileName, N) % % EXAMPLES % 1. [d, Date, ChannelName] = readepicsstriptool % t = datenum(Date, 'mm/dd/yyyy HH:MM:SS'); % Not...
github
lnls-fac/MatlabMiddleLayer-master
plot_dvm_golden_loop.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/Common/plot_dvm_golden_loop.m
11,020
utf_8
2fbc68a0affff52572adb18766b5f5f7
function plot_dvm_golden_loop(InputFile) % plot_dvm_golden_loop('InputFile') % '/home/physdata/matlab/srdata/powersupplies/BQFQD_ramping_20070119/coordinated_ramp_B_QF_QD_20070119_4kHz_1.txt' % '/home/physdata/matlab/srdata/powersupplies/BQFQD_ramping_20070129/new_Bend_profile_with_quads_6.txt' % '/home/physdata/matl...
github
lnls-fac/MatlabMiddleLayer-master
libera.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/Common/libera.m
19,438
utf_8
ffb56d504fad4442dcef72a1d30bc1e5
function [AM, SP] = libera(Port, BPMName, TriggerFlag) %LIBERA - Gets data from all the different ports for the Libera BPM % [Monitors, Setpoints] = libera(Port, BPMName, TriggerFlag) % % INPUTS % 1. Port - ADC, DD1, DD2, DD3, DD4, ENV, FA, PM, SA % 2. BPMName - First field in the EPICS BPM name % 3. Keywor...
github
lnls-fac/MatlabMiddleLayer-master
setoperationalmode.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/BTS/setoperationalmode.m
11,736
utf_8
bf261f2ab7d6a76a948d9bb57a233cef
function setoperationalmode(ModeNumber) %SETOPERATIONALMODE - Switches between the various operational modes % setoperationalmode(ModeNumber) % % ModeNumber = 1. '1.9 GeV Injection' % 2. '1.23 GeV Injection % 3. '1.522 GeV Injection % 999. 'Greg's Mode' % % See als...
github
lnls-fac/MatlabMiddleLayer-master
aoinit.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/BTS/aoinit.m
1,601
utf_8
1f1020a53cb29c88b9eee17fa849b0eb
function aoinit(SubMachineName) %AOINIT - Initialization function for the Matlab Middle Layer (MML) % The path should not be modified in standalone mode if ~isdeployed_local % Regular Matlab Session MMLROOT = getmmlroot('IgnoreTheAD'); % Add users directories %CommonDirectory = fullfile...
github
lnls-fac/MatlabMiddleLayer-master
btsinit.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/BTS/btsinit.m
30,412
utf_8
56fae50839ff2bf5a9be1546d5488641
function btsinit(OperationalMode) %BTSINIT % To do % 1. units and conversions for the bumps, etc. % 2. SR bumps? if nargin < 1 % 1 => 1.9 GeV injection % 2 => 1.23 GeV injection % 3 => 1.522 GeV injection OperationalMode = 1; end %%%%%%%%%%%%%%%% % Build the AO % %%%%%%%%...
github
lnls-fac/MatlabMiddleLayer-master
arplot_bts.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/BTS/arplot_bts.m
16,389
utf_8
25825d2780b155fa9e09600064cdb83e
function arplot_bts(monthStr, days, year1, month2Str, days2, year2) %ARPLOT_BTS - Plots various performance data from the ALS archiver for the BTS line % arplot_bts(Month1 String, Days1, Year1, Month2 String, Days2, Year2) % % Plots a whole bunch of BTS related archived data. % Inputs if nargin < 2 mon...
github
lnls-fac/MatlabMiddleLayer-master
arplot_sbm_tight.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/arplot_sbm_tight.m
21,227
utf_8
a09af9f9cff582f34b7e896c9511d73e
function arplot_sbm(monthStr, days, year1, month2Str, days2, year2) % arplot_sbm(Month1 String, Days1, Year1, Month2 String, Days2, Year2) % % Plots archived data about all 3 Superbends. % % Example: arplot_sbm('January',22:24, 1998); % plots data from 1/22, 1/23, and 1 in 1998 % % C. Steier, August...
github
lnls-fac/MatlabMiddleLayer-master
bbasearch.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/bbasearch.m
12,926
utf_8
cec4b7b40cf2406058bc84c781d2d998
function [XOffset, YOffset] = bbasearch(varargin) global THERING % Planes to fit XFlag = 1; YFlag = 1; % Deltas for the gradient DeltaBump1 = .002; DeltaBump2 = 10 * DeltaBump1; FileName = ''; if nargin >= 1 FileName = varargin{1}; end if isempty(FileName) %[FileName, PathName] = uigetfile('*.mat', 'Selec...
github
lnls-fac/MatlabMiddleLayer-master
alslaunchpad.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/alslaunchpad.m
3,778
utf_8
2aafc8bf9a4f673223332d6a8fe41773
function varargout = alslaunchpad(varargin) % ALSLAUNCHPAD M-file for alslaunchpad.fig % ALSLAUNCHPAD, by itself, creates a new ALSLAUNCHPAD or raises the existing % singleton*. % % H = ALSLAUNCHPAD returns the handle to a new ALSLAUNCHPAD or the handle to % the existing singleton*. % % ALSLAUN...
github
lnls-fac/MatlabMiddleLayer-master
setoperationalmode.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/setoperationalmode.m
86,740
utf_8
a7089cd93a5bb351ab8afde8f69f2cb8
function setoperationalmode(ModeNumber) %SETOPERATIONALMODE - Switches between the various operational modes % setoperationalmode(ModeNumber) % % ModeNumber = 1. 1.9 GeV, Top Off % 2. 1.9 GeV, Ramping from 1.353 GeV % 3. 1.9 GeV, Ramping from 1.230 GeV % 4. 1.9 GeV, Hi...
github
lnls-fac/MatlabMiddleLayer-master
quadcenterinit.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/quadcenterinit.m
16,699
utf_8
d5ea26d230672e593eb709bdf88d4cc1
function QMS = quadcenterinit(QuadFamily, QuadDev, QuadPlane) % QMS = quadcenterinit(Family, Device, QuadPlane) % % QuadFamily = Quadrupole family % QuadDev = Quadrupole device % QuadPlane = Plane (1=horizontal {default}, 2=vertical) % % QMS structure contains fields: % QMS.QuadFamily % QMS.QuadDev % QMS...
github
lnls-fac/MatlabMiddleLayer-master
arplot_sbm.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/arplot_sbm.m
20,894
utf_8
a63a117035f56fe7ec1e6f080d82b5de
function arplot_sbm(monthStr, days, year1, month2Str, days2, year2) % arplot_sbm(Month1 String, Days1, Year1, Month2 String, Days2, Year2) % % Plots archived data about all 3 Superbends. % % Example: arplot_sbm('January',22:24, 1998); % plots data from 1/22, 1/23, and 1 in 1998 % % C. Steier, August...
github
lnls-fac/MatlabMiddleLayer-master
arplot_girdertc.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/arplot_girdertc.m
18,699
utf_8
0ecce693fddd6a863a7b622e3b5ddad9
function meanTC = arplot_girdertc(monthStr, days, year1, month2Str, days2, year2) % mean = arplot_girdertc(Month1 String, Days1, Year1, Month2 String, Days2, Year2) % % Plots Beam Current and Storage Ring Girder Thermocouple data. % Returns a structure "mean" with mean values for each sector % % Example: arplot...
github
lnls-fac/MatlabMiddleLayer-master
srcontrol_chris_20081219.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/srcontrol_chris_20081219.m
130,041
utf_8
0cc5054522779347dcfe9a73a7109f82
function varargout = srcontrol(varargin) %SRCONTROL M-file for srcontrol.fig % SRCONTROL, by itself, creates a new SRCONTROL or raises the existing % singleton*. % % H = SRCONTROL returns the handle to a new SRCONTROL or the handle to % the existing singleton*. % % SRCONTROL('Property','Value',...
github
lnls-fac/MatlabMiddleLayer-master
aoinit.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/aoinit.m
1,509
utf_8
cf746cd360c206cf9e9eed3543fdac5d
function aoinit(SubMachineName) %AOINIT - Initialization function for the Matlab Middle Layer (MML) % Just for debug %system('path') % The path should not be modified in standalone mode if ~isdeployed_local % Regular Matlab Session MMLROOT = getmmlroot('IgnoreTheAD'); % Add users dir...
github
lnls-fac/MatlabMiddleLayer-master
arplot_pbpm.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/arplot_pbpm.m
8,191
utf_8
2cfd8ecc037695514c0ef5316d77188c
function arplot_pbpm(monthStr, days, year1, month2Str, days2, year2) % arplot_pbpm(Month1 String, Days1, Year1, Month2 String, Days2, Year2) % Inputs if nargin < 2 error('ARPLOTS: You need at least two input arguments.'); elseif nargin == 2 tmp = clock; year1 = tmp(1); monthStr2 = []; days2...
github
lnls-fac/MatlabMiddleLayer-master
addpathlfb.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/addpathlfb.m
603
utf_8
c14d1fe483b62fef0764510e006adb90
function addpathlfb %ADDPATHLFB - Add the LFB software to the Matlab path % The path should not be modified in standalone mode if ~isdeployed_local % Regular Matlab Session MMLROOT = getmmlroot; % LFB addpath(fullfile(MMLROOT, 'machine', 'ALS', 'StorageRing', 'LFB', 'LFBTools'),'-begin'); ...
github
lnls-fac/MatlabMiddleLayer-master
topoff_apertures.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/topoff_apertures.m
60,825
utf_8
6a7c260f4d068d1575a4d2eece3b4349
function BL = topoff_apertures(BLNumber, ExtremeRay, LineColorInput, LineWidth, DimFlag, PhaseSpaceFlag) %TOPOFF_APERTURES - Phase space information on the BL Dot-3 ports % BL = topoff_apertures(BLNumber, ExtremeRay, LineColor) % % INPUTS % 1. BLNumber - Beamline number % For scalar BLNumber, on...
github
lnls-fac/MatlabMiddleLayer-master
arplot_sr_mmaligned.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/arplot_sr_mmaligned.m
63,123
utf_8
c7b7ce4bc75504b2f5534dbd000e4a26
function arplot_sr_mmaligned(monthStr, days, year1, month2Str, days2, year2) % arplot_sr_mmaligned(Month1 String, Days1, Year1, Month2 String, Days2, Year2) % % Plots a whole bunch of storage ring related archived data. % Only plots data when feed forward is on. % % Used for the special case when the spiricon be...
github
lnls-fac/MatlabMiddleLayer-master
arplot_vacuum.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/arplot_vacuum.m
19,104
utf_8
6c651775e5a43bbe4b1d845d29295e7e
function arplot_ig(monthStr, days, year1, month2Str, days2, year2) % arplot_ig(Month1 String, Days1, Year1, Month2 String, Days2, Year2) % % Plots Beam Current, Lifetime, and all SR IG data. % % Example: arplot_ig('January',22:24, 1998); % plots data from 1/22, 1/23, and 1/24 in 1998 % Inputs i...
github
lnls-fac/MatlabMiddleLayer-master
buildsrdatabase.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/buildsrdatabase.m
9,276
utf_8
4926027e65cee5233440b015a87e4ad1
function buildsrdatabase %BUILDSRDATABASE - Build the storage ring database tables BPM, Lattice, MPS % % Also calls buildbpmrespdatabase % % See also buildbpmrespdatabase, getmysqldata % Written by Greg Portmann %%%%%%%%%%%%%%%%%%%%% % Open a connection % %%%%%%%%%%%%%%%%%%%%% Host = 'ps3.als.lbl.gov...
github
lnls-fac/MatlabMiddleLayer-master
archive_sr.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/archive_sr.m
11,336
utf_8
bbdca9468e26c8998bbf32ae67998095
function Output = archive_sr(DropTableFlag) %ARCHIVE_SR - Archive storage ring data to the mysql database % % archive_sr(DropTableFlag) % DropTableFlag - Drop the table before creating it % % Special cases: % 1. DataBaseInfo = archive_sr('History') % 2. Present_Table = archive_sr('Table') % 3. Pre...
github
lnls-fac/MatlabMiddleLayer-master
srcycle.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/srcycle.m
25,707
utf_8
c56f8bbef2d6a324b300bca73a09c9c9
function FailFlag = srcycle(varargin) %SRCYCLE - Storage ring cycle % srcycle(SuperBendFlag {'Yes'/'No'}, ChicaneAndSkewQuadFlag {'Yes'/'No'}) % srcycle('SuperBend' , 'ChicaneAndSkewQuad') % srcycle('NoSuperBend', 'NoChicaneAndSkewQuad') {Default} % % See also srramp, setmachineconfig % Revision Histor...
github
lnls-fac/MatlabMiddleLayer-master
arplot_flexbandtc.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/arplot_flexbandtc.m
25,509
utf_8
a019e04314eaf2d2adf61cd514c3c9ae
function arplot_flexbandtc(monthStr, days, year1, month2Str, days2, year2) % arplot_flexbandtc(Month1 String, Days1, Year1, Month2 String, Days2, Year2) % % Plots Beam Current and Flexband Thermocouple data. % % Example: arplot_flexbandtc('January',22:24, 1998); % plots data from 1/22, 1/23, and 1/24 ...
github
lnls-fac/MatlabMiddleLayer-master
arplot_boosterRF.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/arplot_boosterRF.m
33,518
utf_8
2802cc9bb609a5d94cc261399ba8c8ce
function arplot_boosterRF(monthStr, days, year1, month2Str, days2, year2) % arplot_boosterRF(Month1 String, Days1, Year1, Month2 String, Days2, Year2) % % Plots a whole bunch of Booster RF related archived data. % % Example #1: arplot_boosterRF('January',22:24,1998); % plots data from 1/22, 1/23, a...
github
lnls-fac/MatlabMiddleLayer-master
measrespmat_als.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/measrespmat_als.m
38,920
utf_8
0e8807334806762d65e1904497bcfcbe
function S = measrespmat(varargin) %MEASRESPMAT - Measure a response matrix % % For family name, device list inputs: % S = measrespmat(MonitorFamily, MonitorDeviceList, ActuatorFamily, ActuatorDeviceList, ActuatorDelta, ModulationMethod, WaitFlag, ExtraDelay) % % For data structure inputs: % S = measrespmat...
github
lnls-fac/MatlabMiddleLayer-master
arplot_sr.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/arplot_sr.m
130,122
utf_8
544498c2d52c4701a0a39f7f40d21ebd
function arplot_sr(monthStr, days, year1, month2Str, days2, year2) %ARPLOT_SR - Plots various performance data from the ALS archiver % arplot_sr(Month1 String, Days1, Year1, Month2 String, Days2, Year2) % % Plots a whole bunch of storage ring related archived data. % Only plots data when feed forward is on. % ...
github
lnls-fac/MatlabMiddleLayer-master
srcontrol_cycle.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/srcontrol_cycle.m
7,307
utf_8
a989c90e43b379611b3c503f1d0d27db
function varargout = srcontrol_cycle(varargin) % SRCONTROL_CYCLE M-file for srcontrol_cycle.fig % SRCONTROL_CYCLE by itself, creates a new SRCONTROL_CYCLE or raises the % existing singleton*. % % H = SRCONTROL_CYCLE returns the handle to a new SRCONTROL_CYCLE or the handle to % the existing si...
github
lnls-fac/MatlabMiddleLayer-master
family2archive.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/family2archive.m
8,793
utf_8
2201a827076f5280a244156944b05074
function [ColumnName, ErrorFlag] = family2archive(varargin) %FAMILY2ARCHIVE - Converts the family name to a database column name in the archiver % ColumnName = family2archive(Family, Field, DeviceList) % ColumnName = family2archive(Family, DeviceList) % % INPUTS % 1. Family - Family Name % Data...
github
lnls-fac/MatlabMiddleLayer-master
arplot_channel.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/arplot_channel.m
6,202
utf_8
c11fd98848b3973d93d3f1f11ddcec80
function data = arplot_channel(channel,monthStr, days, year1, month2Str, days2, year2) % arplot_channel(channel,Month1 String, Days1, Year1, Month2 String, Days2, Year2) % % Plots diagnostic beamlines 3.1 and 7.2 archived data. % Only plots data when feed forward is on. % % Example #1: arplot_sr('January',22:24,...
github
lnls-fac/MatlabMiddleLayer-master
arplot_camshaftkicker.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/arplot_camshaftkicker.m
5,726
utf_8
988023627f6f467928acee30457c95a3
function arplot_camshaftkicker(monthStr, days, year1, month2Str, days2, year2) %ARPLOT_CAMSHAFTKICKER - Plots various data from the ALS archiver for the camshaft fast kicker magnet % arplot_camshaftkicker(Month1 String, Days1, Year1, Month2 String, Days2, Year2) % % EXAMPLES % 1. arplot_camshaftkicker('Septembe...
github
lnls-fac/MatlabMiddleLayer-master
arplot_sr_fast.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/arplot_sr_fast.m
124,019
utf_8
8f94aafdfcad4079784b9b96d710e65e
function arplot_sr_fast(monthStr, days, year1, month2Str, days2, year2) %ARPLOT_SR - Plots various performance data from the ALS archiver % arplot_sr_fast(Month1 String, Days1, Year1, Month2 String, Days2, Year2) % % Plots a whole bunch of storage ring related archived data. % Only plots data when feed forward ...
github
lnls-fac/MatlabMiddleLayer-master
srramp.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/srramp.m
48,429
utf_8
40b15d9605d33ac32d4e70c830992684
function FailFlag = srramp(varargin) %SRRAMP - Ramp the storage ring energy % ErrorFlag = srramp(EnergyStop, NStepsPerGeV) % Ramp from the present energy to EnergyStop % The ramp files are built by buildramptable. % % INPUTS % 1. EnergyStop - Ramp to energy [GeV] % For string inputs: '...
github
lnls-fac/MatlabMiddleLayer-master
arplot_id.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/arplot_id.m
15,993
utf_8
b7ac40479bba414ebd3be04474f64f11
function arplot_id(monthStr, days, year1, month2Str, days2, year2) % arplot_id(Month1 String, Days1, Year1, Month2 String, Days2, Year2) % % Plots insertion device archived data info. % % Example: arplot_id('January',22:24, 1998); % plots data from 1/22, 1/23, and 1/24 in 1998 % % Inputs if nargin...
github
lnls-fac/MatlabMiddleLayer-master
srcontrol.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/srcontrol.m
128,481
utf_8
3e4cb2b0acd3fc1fdf84639e0b58b4b8
function varargout = srcontrol(varargin) %SRCONTROL M-file for srcontrol.fig % SRCONTROL, by itself, creates a new SRCONTROL or raises the existing % singleton*. % % H = SRCONTROL returns the handle to a new SRCONTROL or the handle to % the existing singleton*. % % SRCONTROL('Property','Value',...
github
lnls-fac/MatlabMiddleLayer-master
arplot_orbitfb3.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/arplot_orbitfb3.m
38,834
utf_8
9fe2eabfaab15ea95b7fa9063670beb2
function arplot_orbitfb3(monthStr, days, year1, month2Str, days2, year2) % arplot_orbitfb3(Month1 String, Days1, Year1, Month2 String, Days2, Year2) % % Plots archived data about the orbit feedback, specifically the AM-AC of the % correctors used. The AM channel is the sum of the trim value plus the normal AM, ...
github
lnls-fac/MatlabMiddleLayer-master
camshaftkickertemperatures.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/camshaftkickertemperatures.m
6,791
utf_8
78d8f07d606c47012ca27ab4e0aa2e2c
function [T, LabelCell, ChanNames] = camshaftkickertemperatures(DeltaT) %CAMSHAFTKICKERTEMPERATURES - Temperatures on the camshaft bunch kicker % [T, Label, ChanNames] = camshaftkickertemperatures(DeltaT) % % INPUTS % 1. DeltaT - Time delay between measurements {Default: 5} [seconds] % (Only used ...
github
lnls-fac/MatlabMiddleLayer-master
arplot_diagbl.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/arplot_diagbl.m
29,650
utf_8
08a9db7668224ce90cbe2594e9d005d5
function arplot_diagbl(monthStr, days, year1, month2Str, days2, year2) % arplot_diagbl(Month1 String, Days1, Year1, Month2 String, Days2, Year2) % % Plots diagnostic beamlines 3.1 and 7.2 archived data. % Only plots data when feed forward is on. % % Example #1: arplot_sr('January',22:24,1998); % p...
github
lnls-fac/MatlabMiddleLayer-master
arplot_lcw.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/arplot_lcw.m
13,217
utf_8
034188de11b083ebbf3b267b3df4aed8
function arplot_lcw(monthStr, days, year1, month2Str, days2, year2) %ARPLOT_LCW - Plots various data from the ALS archiver for some LCW parameters % arplot_lcw(Month1 String, Days1, Year1, Month2 String, Days2, Year2) % % EXAMPLE % arplot_lcw('September',1:19,2008); % % Inputs if nargin < 2 monthStr...
github
lnls-fac/MatlabMiddleLayer-master
mysqldatalogger.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/mysqldatalogger.m
7,702
utf_8
bc18da81b108d264cd7c8e95230d1fdf
function varargout = mysqldatalogger(varargin) % MYSQLDATALOGGER M-file for mysqldatalogger.fig % MYSQLDATALOGGER by itself, creates a new MYSQLDATALOGGER or raises the % existing singleton*. % % H = MYSQLDATALOGGER returns the handle to a new MYSQLDATALOGGER or the handle to % the existing singleto...
github
lnls-fac/MatlabMiddleLayer-master
alsinit.m
.m
MatlabMiddleLayer-master/Release/machine/ALS/StorageRing/alsinit.m
167,860
utf_8
a94a934e290957f65c15dca8653dff36
function alsinit(OperationalMode) %ALSINIT - MML initialization file for the ALS % To do: % 1. IDBPM and BBPM are not simulated (can we just remove them?) % 2. VCBSC not fully setup: Limits, tolerance, k2amp/amp2k % 3. Look for all "???" text % For the compiler %#function gettune_als getrf_als setrf_...
github
lnls-fac/MatlabMiddleLayer-master
tlsinit.m
.m
MatlabMiddleLayer-master/Release/machine/TLS/StorageRing/tlsinit.m
25,231
utf_8
f79f393c5b4432dba2a17daa4c9ea1e3
function tlsinit % NOTES & COMMENTS % 1. Magnet positions get overwritten in updateatindex. % Ie, positions come directly from the AT model. % 2. Make sure the BPM and magnes are in the correct location in the AT model % or LOCO will have trouble. % 3. Try viewfamily, plotfamily, mmlviewer to view ...
github
lnls-fac/MatlabMiddleLayer-master
calibrate_ids.m
.m
MatlabMiddleLayer-master/Release/machine/LNLS1/StorageRingData/User/LOCO/2017-02-06 Luis Yves/calibrate_ids.m
6,812
utf_8
503422d8f7c967b90dcde87f42ac3b23
function calibrate_ids fprintf('\n'); [awg01,awg09] = get_data(); % load LOCO calibrated THERING with IDs off. fprintf('Loading THERING calibrated without IDs\n'); root_folder = lnls_get_root_folder(); r = load(fullfile(root_folder, 'code', 'MatlabMiddleLayer','Release','machine','LNLS1','StorageRingData','User','LO...
github
lnls-fac/MatlabMiddleLayer-master
lnls1_init.m
.m
MatlabMiddleLayer-master/Release/machine/LNLS1/Booster/lnls1_init.m
36,906
utf_8
2a4a67a02a0bc77351325ce94b247687
function lnls1_init(OperationalMode) %LNLSINIT - MML initialization file for the VUV ring at LNLS1 % lnlsinit(OperationalMode) % % See also setoperationalmode % NOTES & COMMENTS % 1. Make sure the BPM and magnes are in the correct location in the AT model % or LOCO will have trouble. % 2. Try mmlv...
github
lnls-fac/MatlabMiddleLayer-master
lnls1_init.m
.m
MatlabMiddleLayer-master/Release/machine/LNLS1/StorageRing/lnls1_init.m
67,795
utf_8
fc20e84748b22e3a32417016c4053b8d
function lnls1_init %LNLS1_INIT - MML initialization file for the VUV ring at LNLS1 % % lnls1_init % % See also setoperationalmode % % History: % % 2012-01-23 adiciona folder 'modes' ao path do Matlab % 2011-04-30 reestrutura fam???lia AON11 (X.R.R.) setao([]); setad([]); % Base on the loc...
github
lnls-fac/MatlabMiddleLayer-master
setoperationalmode.m
.m
MatlabMiddleLayer-master/Release/machine/LNLS1/StorageRing/setoperationalmode.m
12,462
utf_8
9f283f4de2b4871099086d7adaecd155
function setoperationalmode(ModeNumber) %SETOPERATIONALMODE - Switches between the various operational modes % setoperationalmode(ModeNumber) % % ModeNumber = 1. 1.37 GeV, User Mode {Default} % 2. 0.49 GeV, Injection Mode % 3. 1.37 GeV, BEDI % 4. 1.37 GeV, Low Alph...
github
lnls-fac/MatlabMiddleLayer-master
setorbitbumpgui.m
.m
MatlabMiddleLayer-master/Release/machine/LNLS1/StorageRing/scripts/setorbitbumpgui.m
27,780
utf_8
4bd3562b2d3d3369b65bd7cd3f742bbe
function varargout = setorbitbumpgui(varargin) %SETORBITBUMPGUI M-file for setorbitbumpgui.fig % SETORBITBUMPGUI, by itself, creates a new SETORBITBUMPGUI or raises the existing % singleton*. % % H = SETORBITBUMPGUI returns the handle to a new SETORBITBUMPGUI or the handle to % the existing si...
github
lnls-fac/MatlabMiddleLayer-master
setorbitgui.m
.m
MatlabMiddleLayer-master/Release/machine/LNLS1/StorageRing/scripts/setorbitgui.m
70,481
utf_8
eb6c43f71efb36366183911e1a3b94e9
function varargout = setorbitgui(varargin) %SETORBITGUI - Orbit correction GUI % % See also setorbit, orbitcorrectionmethods, setorbitdefault, setorbitbump % Written by Jacob Pachikara and Greg Portmann % To do: % Stop blinking of legends during orbit feedback % Add ID tune feedforward, etc to setorbit? ...
github
lnls-fac/MatlabMiddleLayer-master
lnls1_symmetrize_optics2.m
.m
MatlabMiddleLayer-master/Release/machine/LNLS1/StorageRing/scripts/lnls1_symmetrize_optics2.m
5,952
utf_8
89814ba777df9f72a80c5ccd0806ba08
function r = lnls1_symmetrize_optics2(locoModel, tunes) global THERING % lnls1_set_server('','',''); lnls1; THERING = locoModel; if ~exist('tunes', 'var') twiss = calctwiss(locoModel); tunes = [twiss.mux(end) twiss.muy(end)] / 2 / pi; end quads_loco = get_quad_data; type = 'QuadFamilies'; l...
github
lnls-fac/MatlabMiddleLayer-master
lnls1_measbba.m
.m
MatlabMiddleLayer-master/Release/machine/LNLS1/StorageRing/scripts/lnls1_measbba.m
23,581
UNKNOWN
f274cfc0fad1b6ebeca24a724b104d87
function bba = lnls1_measbba(varargin) %Faz medida BBA (Beam-based alignment) % %Historia: % %2013-10-09: mudada a estrutura de dados com info sobre bba a ser realizado (p/ ficar mais fácil selecionar BPMs) %2012-10-11: adicionado delta_shunt_global = 3 para tentar melhorar a sensibilidade da medida.(Ximenes e J...
github
lnls-fac/MatlabMiddleLayer-master
lnls1_low_alpha_fit_chroms_and_compaction.m
.m
MatlabMiddleLayer-master/Release/machine/LNLS1/StorageRing/scripts/lnls1_low_alpha_fit_chroms_and_compaction.m
1,963
utf_8
b4c13e4fa9be4ec0fcb1c7eebc21049e
function lnls1_low_alpha_fit_chroms_and_compaction global THERING goal_chromx = -3.2; goal_chromy = +4.2; goal_alpha2 = 2.47e-2; %load('THERING_best.mat'); r = calc_merit_function(goal_chromx, goal_chromy, goal_alpha2); fprintf('%f\n', r); iter = 0; while (true) if (mod(iter,100) == 0) dis...
github
lnls-fac/MatlabMiddleLayer-master
lnls1_symmetrize_optics.m
.m
MatlabMiddleLayer-master/Release/machine/LNLS1/StorageRing/scripts/lnls1_symmetrize_optics.m
10,213
utf_8
cc3ed489c31c88bdfa3040bdbbbedd45
function r = lnls1_symmetrize_optics(varargin) % function r = lnls1_symmetrize_optics(varargin) % % Faz simetriza??o da ?tica do anel a partir da an?lise LOCO; % % Par?metros de argumento: % 'DataInFiles' : medidas usadas pelo LOCO j? est?o em arquivos. % 'NoSymmImplementation' : n?o impleme...
github
lnls-fac/MatlabMiddleLayer-master
lnls1_bedi_symm.m
.m
MatlabMiddleLayer-master/Release/machine/LNLS1/StorageRing/scripts/lnls1_bedi_symm.m
1,081
utf_8
ee6c4f1a54149f2843c1c48b398d6c47
function lnls1_bedi_symm disp('THERING should have LOCO-calibrated model...'); QF0 = getpv('QF'); QD0 = getpv('QD'); QFC0 = getpv('QFC'); symmetrize_optics; QF = getpv('QF'); QD = getpv('QD'); QFC = getpv('QFC'); dQF = QF - QF0; dQD = QD - QD0; dQFC = QFC - QFC0; switch2online; %lnls1_slow_o...
github
lnls-fac/MatlabMiddleLayer-master
SRUtil.m
.m
MatlabMiddleLayer-master/Release/machine/CLS/StorageRing/SRUtil.m
17,500
utf_8
2efe70c686ca102929145a7c31d778fb
function varargout = SRUtil(varargin) % ---------------------------------------------------------------------------------------------- % $Header: MatlabApplications/acceleratorcontrol/cls/SRUtil.m 1.3 2007/04/17 16:32:29CST summert Exp $ % ----------------------------------------------------------------------------...
github
lnls-fac/MatlabMiddleLayer-master
QuadFamilies.m
.m
MatlabMiddleLayer-master/Release/machine/CLS/StorageRing/QuadFamilies.m
23,180
utf_8
a63f8068cdae85a90e906177c7ad83d6
function varargout = QuadFamilies(varargin) % ---------------------------------------------------------------------------------------------- % $Header: MatlabApplications/acceleratorcontrol/cls/QuadFamilies.m 1.2 2007/03/02 09:02:52CST matiase Exp $ % ---------------------------------------------------------------...
github
lnls-fac/MatlabMiddleLayer-master
SRmaster.m
.m
MatlabMiddleLayer-master/Release/machine/CLS/StorageRing/SRmaster.m
9,206
utf_8
a81b9f585d8091496430e34f1207b085
% ------------------------------------------------------------------------- % $Header: MatlabApplications/acceleratorcontrol/cls/SRmaster.m 1.2.1.2 2007/07/06 10:54:48CST Tasha Summers (summert) Exp $ % ------------------------------------------------------------------------- % % SRMASTER M-file for SRmaster.fig ...