source: MML/trunk/machine/SOLEIL/StorageRing/bpm/getbpmbycell.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: 556 bytes
Line 
1function devlist = getbpmbycell(argin)
2%GETBPMBYCELL - Return devicelist of BPM in a given cell
3%
4%  OUTPUT
5%  1. cell number
6%
7%  Example:
8%  1. getbpmbycell(4) - Get bpm from cell 4
9%  2. getbpmbycell((1:4)) - Get bpms from cell 1 to 4
10%  3. getbpmbycell([1 5 9 13]) - Get bpms from cell 1 to 4
11%
12%  See Also getbpmbyrack
13
14%
15%  Written by Laurent S. Nadolski
16
17cellNumber = argin;
18
19BPMDevList = family2dev('BPMx');
20
21devlist = [];
22for k = 1:length(cellNumber),
23    Idx = (BPMDevList(:,1) == cellNumber(k));
24    devlist = [devlist; BPMDevList(Idx,:)];
25end
Note: See TracBrowser for help on using the repository browser.