Last change
on this file since 4 was
4,
checked in by zhangj, 11 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
766 bytes
|
Line | |
---|
1 | function [varargout] = soleilbpmcheck |
---|
2 | %SOLEILBPMCHECK - Checks for bad bpm entries |
---|
3 | %create BPM.status vector with valid indices contained in total bpm vector itbpm |
---|
4 | |
---|
5 | % |
---|
6 | % Modified by Laurent Nadolski |
---|
7 | |
---|
8 | mode = getfamilydata('BPMx','Monitor','Mode'); |
---|
9 | |
---|
10 | if strcmpi(mode,'ONLINE') %...system is ONLINE - look for bad BPM readings |
---|
11 | xstat = find(getfamilydata('BPMx','Status')); |
---|
12 | ystat = find(getfamilydata('BPMz','Status')); |
---|
13 | elseif strcmpi(mode,'SIMULATOR') |
---|
14 | xstat = find(getfamilydata('BPMx','Status')); |
---|
15 | ystat = find(getfamilydata('BPMz','Status')); |
---|
16 | elseif strcmpi(mode,'Special') |
---|
17 | xstat = find(getfamilydata('BPMx','Status')); |
---|
18 | ystat = find(getfamilydata('BPMz','Status')); |
---|
19 | end %end of mode condition |
---|
20 | |
---|
21 | varargout{1} = xstat; |
---|
22 | varargout{2} = ystat; |
---|
Note: See
TracBrowser
for help on using the repository browser.