1 | %============================================================= |
---|
2 | function [varargout] = BLInit_Orb(varargin) |
---|
3 | %============================================================= |
---|
4 | %Append fields to input structure for ORBIT program |
---|
5 | %Initialize photon beamline data |
---|
6 | %BL=BLInit_Orb(BL); |
---|
7 | BL=varargin{1}; |
---|
8 | |
---|
9 | %horizontal |
---|
10 | BL(1).ifit=[]; %...indices for fitting |
---|
11 | BL(1).fit=zeros(size(BL(1).name,1),1); %...predicted moves |
---|
12 | BL(1).iopen=[]; %...flags for open beamlines |
---|
13 | BL(1).open=[]; %...indices for beamline status |
---|
14 | BL(1).iauto=[]; %...flags for auto beamlines |
---|
15 | BL(1).auto=[]; %...indices for beamline auto |
---|
16 | BL(1).avail=[]; %...indices for available beamlines |
---|
17 | BL(1).sum =zeros(size(BL(1).name,1),1); %...photon BPM sum readings |
---|
18 | BL(1).err =zeros(size(BL(1).name,1),1); %...photon BPM err readings |
---|
19 | BL(1).norm =zeros(size(BL(1).name,1),1); %...photon BPM err/sum |
---|
20 | BL(1).cur =zeros(size(BL(1).name,1),1); %...photon BPM cur readings |
---|
21 | BL(1).wt=100*ones(size(BL(1).name,1),1); %...photon BPM weights |
---|
22 | |
---|
23 | %vertical |
---|
24 | BL(2).ifit=[]; %...indices for fitting |
---|
25 | BL(2).fit=zeros(size(BL(1).name,1),1); %...predicted moves |
---|
26 | BL(2).iopen=[]; %...flags for open beamlines |
---|
27 | BL(2).open=[]; %...indices for beamline status |
---|
28 | BL(2).iauto=[]; %...flags for auto beamlines |
---|
29 | BL(2).auto=[]; %...indices for beamline auto |
---|
30 | BL(2).avail=[]; %...indices for available beamlines |
---|
31 | BL(2).sum =zeros(size(BL(2).name,1),1); %...photon BPM sum readings |
---|
32 | BL(2).err =zeros(size(BL(2).name,1),1); %...photon BPM err readings |
---|
33 | BL(2).norm =zeros(size(BL(2).name,1),1); %...photon BPM err/sum |
---|
34 | BL(2).cur =zeros(size(BL(2).name,1),1); %...photon BPM cur readings |
---|
35 | BL(2).wt=100*ones(size(BL(2).name,1),1); %...photon BPM weights |
---|
36 | |
---|
37 | varargout{1}=BL; |
---|