Last change
on this file since 17 was
17,
checked in by zhangj, 11 years ago
|
To have a stable version on the server.
|
-
Property svn:executable set to
*
|
File size:
556 bytes
|
Line | |
---|
1 | function 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 | |
---|
17 | cellNumber = argin; |
---|
18 | |
---|
19 | BPMDevList = family2dev('BPMx'); |
---|
20 | |
---|
21 | devlist = []; |
---|
22 | for k = 1:length(cellNumber), |
---|
23 | Idx = (BPMDevList(:,1) == cellNumber(k)); |
---|
24 | devlist = [devlist; BPMDevList(Idx,:)]; |
---|
25 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.