Last change
on this file was
4,
checked in by zhangj, 11 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
607 bytes
|
Line | |
---|
1 | function varargout=BPMLog(varargin) |
---|
2 | %============================================================= |
---|
3 | % write bpms to file in format of spear orbit program |
---|
4 | |
---|
5 | SYS =varargin{1}; |
---|
6 | BPM =varargin{2}; |
---|
7 | if nargin==3 |
---|
8 | BL =varargin{3}; |
---|
9 | else |
---|
10 | BL=[]; |
---|
11 | end |
---|
12 | |
---|
13 | |
---|
14 | %disp('bpmlog') |
---|
15 | fid=SYS.BPMLogfid; |
---|
16 | cyc=SYS.cycle; |
---|
17 | curr=SYS.curr; |
---|
18 | fprintf(fid,'%s\n',[num2str(cyc),' ',datestr(now,0),' ',num2str(curr)]); |
---|
19 | for ii=1:length(BPM(1).name(:,1)) |
---|
20 | fprintf(fid,'%12.3f %12.3f %12.3f\n',... |
---|
21 | BPM(1).act(ii), BPM(2).act(ii), 0.0); |
---|
22 | end |
---|
23 | if ~isempty(BL) |
---|
24 | for ii=1:length(BL(2).name(:,1)) |
---|
25 | fprintf(fid,'%12.3f\n',BL(2).nerr(ii)); |
---|
26 | end |
---|
27 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.