Commit 7733118c authored by Simone Liuzzo's avatar Simone Liuzzo

added to optional inputs for algorithm and inchoerency. NOT USED.

parent b9627384
function [o,erro] = measureorbit(obj)
function [o,erro] = measureorbit(obj,varargin)
%MEASUREORBIT measures closed orbit
%
% read BPMs to obtain orbit in ring at BPM
%
% average of obj.n_acquisitions reading
%
%
% Optional inputs:
% 'ignoreinch' = ignores inchoerency. (NOT YET IMPLEMENTED, ALWAYS IGNORED)
% 'algorithm' = BPM algorithm
%
% OUTPUT:
% 3x(Nbpm) matrix.
% first row = horizontal mean of obj.n_acquisitions reading
......@@ -20,6 +24,24 @@ function [o,erro] = measureorbit(obj)
%
%see also: RingControl.plotorbit
p = inputParser;
AddParameter(p,'ignoreinch',false);
AddParameter(p,'algorithm',0);
parse(p,varargin);
ignoreinchoerency = p.Results.ignoreinch;
algorithm = p.Results.algorithm;
if ~ignoreinchoerency
warning('ignore inchoerency not yet functional!');
end
if algorithm == 0
warning('algorithm not yet functional!');
end
filename = obj.OrbitFileName;
average = obj.n_acquisitions;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment