Commit d6a13cbe authored by Simone Liuzzo's avatar Simone Liuzzo
Browse files

limit change in RF to 300 Hz

parent 45bb7f20
......@@ -270,7 +270,7 @@ classdef RingControl < handle
s3 = tango.Device(dev2);
% convert to Ampere
if (v(2)/obj.calibs3) < 6500 & (v(2)/obj.calibs12) < 9000
if (v(2)/obj.calibs3) < 6800 & (v(2)/obj.calibs12) < 9200
s12.(attr1) = v(1)./obj.calibs12;
s3.(attr2) = v(2)./obj.calibs3;
else
......@@ -386,10 +386,14 @@ classdef RingControl < handle
function setRFFrequency(obj,v)
% set RF frequency
%see also:
% set RF frequency
a=tango.Attribute(obj.freq_rf);
a.set = v;
rf0 = 3.522020280655404e+08;
if abs(v-rf0)<300
% set RF frequency
a=tango.Attribute(obj.freq_rf);
a.set = v;
else
warning(['skipped RF change, DeltaRF: ' num2str(v-rf0) ' Hz'])
end
end
......
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