source: MML/trunk/machine/SOLEIL/StorageRing/bpm/soleilbpmcheck.m @ 4

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 
1function [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
8mode = getfamilydata('BPMx','Monitor','Mode');
9
10if strcmpi(mode,'ONLINE') %...system is ONLINE - look for bad BPM readings
11    xstat = find(getfamilydata('BPMx','Status'));
12    ystat = find(getfamilydata('BPMz','Status'));   
13elseif strcmpi(mode,'SIMULATOR')
14    xstat = find(getfamilydata('BPMx','Status'));
15    ystat = find(getfamilydata('BPMz','Status'));
16elseif strcmpi(mode,'Special')
17    xstat = find(getfamilydata('BPMx','Status'));
18    ystat = find(getfamilydata('BPMz','Status'));   
19end  %end of mode condition
20
21varargout{1} = xstat;
22varargout{2} = ystat;
Note: See TracBrowser for help on using the repository browser.