Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BeamDynamics
matutil
Commits
4bef84d6
Commit
4bef84d6
authored
Aug 24, 2018
by
Simone Liuzzo
Browse files
modified to read tango device sr/d-bpmlibera/all states and exclude bpms not On
parent
6bfff0ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
qem/qempanelset.m
View file @
4bef84d6
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment