Commit 9128366e authored by beamdyn's avatar beamdyn

changes

parent 8ac6f053
......@@ -7,11 +7,18 @@ function [Losses, dLosses]=getTotalLosses(average)
% Each acquisition is 2 seconds times average
%
if nargin<1
average=1;
end
try
dev_BLM=tango.Device('srdiag/blm/all');
for ii=1:average
pause(2);
if ii>1
pause(2);
else
pause(2);
end
loss(ii)=dev_BLM.TotalLoss.read;
Losses=mean(loss);
dLosses=std(loss);
......
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