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

Last change on this file since 4 was 4, checked in by zhangj, 10 years ago

Initial import--MML version from SOLEIL@2013

File size: 997 bytes
Line 
1function devlist = getidbpmlist(varargin)
2%GETIDPMLIST - Return devicelist of IDBPM
3%
4%  INPUTS
5%  1. CellNumber (optional) - cell number or seet of cell
6%
7%  OUTPUTS
8%  1. devlist - IDBPM devicelist
9%
10%  EXAMPLES
11%  1. getidpmlist(1) - for cell 1
12%  2. getidpmlist([2 3]) - for cells 2 and 3
13
14%
15%  Written by Laurent S. Nadolski
16
17CellNumber = -1;
18
19if ~isempty(varargin)
20    CellNumber = varargin{1};
21end
22
23
24devlist = [
251     2
262     1
272     2
282     5
292     6
303     1
313     2
323     5
333     6
344     1
354     2
365     1
375     2
386     1
396     2
406     5
416     6
427     1
437     2
447     5
457     6
468     1
478     2
489     1
499     2
5010     1
5110     2
5210     5
5310     6
5411     1
5511     2
5611     5
5711     6
5812     1
5912     2
6013     1
6113     2
6214     1
6314     2
6414     5
6514     6
6615     1
6715     2
6815     5
6915     6
7016     1
7116     2
721     1
73];
74
75if CellNumber ~= -1
76    ind = [];
77    for k = 1:length(CellNumber)
78        ind = [ind; find(devlist(:,1) == CellNumber(k))];
79    end
80    devlist = devlist(ind,:);
81end
Note: See TracBrowser for help on using the repository browser.