function ResistanceSlider_Callback(src,eventdata)
global TargetResistance;
slider_value = get(src,'Value');
TargetResistance = slider_value;
end

