Commit 6458ab52 authored by Thomas Perron's avatar Thomas Perron

search_obs updated

parent 6f71cccd
......@@ -37,14 +37,14 @@ classdef search_obs
cd(curdir);
obj.CUR=tango.Attribute('sr/d-ct/1/current');
obj.BLM=1+mod([3:0.25:34.75],32);
% obj.BLM=1+mod([3:0.25:34.75],32);
%obj.BLM=tango.Device('srdiag/beam-position/all');
obj.ORBITH=tango.Attribute('srdiag/beam-position/all/SA_HPositions');
obj.ORBITV=tango.Attribute('srdiag/beam-position/all/SA_VPositions');
obj.LT=tango.Attribute('srdiag/beam-position/all/SA_HPositions_Peak');
obj.RING='ebs';
dirname=uigetdir('/operation/appdata/ebs/optics/settings','optic to be loaded');
dirname=uigetdir('/operation/beamdyn/matlab/optics/ebs/','optic to be loaded');
obj.MODEL=ebs.model(dirname);
obj.MODEL.directory=dirname;
obj.HRESP=load(fullfile(dirname,'h_resp.csv'));
......@@ -348,12 +348,15 @@ classdef search_obs
or_sv([~bpmok(:);~bpmok(:)],:)=nan;
or_sh([~bpmok(:);~bpmok(:)],:)=nan;
end
function resp=resp_or_blm(obj,plane,strength)
if plane ==1
for i=1:32
if plane ==1
for i=1:32
blmini=obj.BLM(:);
cell=i
obj.BLM=obj.BLM(:)+randn(numel(obj.BLM),1);
obj.BLM=obj.BLM(:)+randn(numel(obj.BLM),1);
sti=obj.HSTRENGTH.read;
stt=sti;
......@@ -373,7 +376,7 @@ classdef search_obs
ylabel('BLM signal sumed over all orbits');
grid on
end
%%
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment