Last change
on this file since 8 was
4,
checked in by zhangj, 11 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
1.0 KB
|
Line | |
---|
1 | function [BPM, CM, Flags, EVectors] = setorbitsetup(varargin) |
---|
2 | %SETORBITSETUP - BPM & CM setup function for setorbitgui |
---|
3 | % [BPM, CM, Flags, EVectors] = setorbitsetup |
---|
4 | % |
---|
5 | % See also setorbit, setorbitgui, setorbitdefault |
---|
6 | % |
---|
7 | % Written by Greg Portmann |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | BPM.BPMxString = { |
---|
12 | 'All BPMs'; |
---|
13 | }; |
---|
14 | |
---|
15 | BPM.BPMyString = BPM.BPMxString; |
---|
16 | |
---|
17 | BPM.BPMx = { |
---|
18 | family2datastruct(gethbpmfamily, 'Monitor'); |
---|
19 | }; |
---|
20 | |
---|
21 | BPM.BPMy = { |
---|
22 | family2datastruct(getvbpmfamily, 'Monitor'); |
---|
23 | }; |
---|
24 | |
---|
25 | |
---|
26 | CM.HCMString = { |
---|
27 | 'All Corrector Magnets'; |
---|
28 | }; |
---|
29 | |
---|
30 | CM.HCM = { |
---|
31 | family2datastruct(gethcmfamily, 'Setpoint'); |
---|
32 | }; |
---|
33 | |
---|
34 | |
---|
35 | CM.VCMString = { |
---|
36 | 'All Corrector Magnets'; |
---|
37 | }; |
---|
38 | |
---|
39 | CM.VCM = { |
---|
40 | family2datastruct(getvcmfamily, 'Setpoint'); |
---|
41 | }; |
---|
42 | |
---|
43 | |
---|
44 | |
---|
45 | EVectors.BPMx = zeros(length(BPM.BPMx),1); |
---|
46 | EVectors.BPMy = zeros(length(BPM.BPMy),1); |
---|
47 | |
---|
48 | EVectors.HCM = [ |
---|
49 | 56 |
---|
50 | ]; |
---|
51 | |
---|
52 | EVectors.VCM = [ |
---|
53 | 56 |
---|
54 | ]; |
---|
55 | |
---|
56 | |
---|
57 | % Defaults |
---|
58 | for i = 1:length(BPM.BPMxString) |
---|
59 | Flags{i}.NIter = 1; |
---|
60 | Flags{i}.GoalOrbit = 'Golden'; |
---|
61 | Flags{i}.PlaneFlag = 0; |
---|
62 | end |
---|
63 | Flags{3}.NIter = Inf; |
---|
64 | Flags{4}.NIter = Inf; |
---|
65 | |
---|
Note: See
TracBrowser
for help on using the repository browser.