Commit 4bef84d6 authored by Simone Liuzzo's avatar Simone Liuzzo
Browse files

modified to read tango device sr/d-bpmlibera/all states and exclude bpms not On

parent 6bfff0ce
......@@ -119,6 +119,15 @@ if ~isfield(qemres,'bhrot'), qemres.bhrot=ones(nbpm,1); end
if ~isfield(qemres,'bvrot'), qemres.bvrot=ones(nbpm,1); end
qemres.brot=0.5*(qemres.bhrot+qemres.bvrot);
% store wrong BPMS
try
bpms_dev = tango.Device('sr/d-bpmlibera/all');
qemres.wrongbpms = find(bpms_dev.All_Status.read~=0); % index of BPMS that are not green in libera manager.
catch err
disp(err);
warning('tango not available');
end
elist=sort(selcor(qemres.skcode));
qemres.skewidx=qemres.sextidx(elist);
qemres.skewl=qemres.sxl(elist);
......
Supports Markdown
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