function KpSlider_Callback(src,eventdata)
global Kp;
%global t;
slider_value = get(src,'Value');
Kp = slider_value;
%fopen(t);
%fwrite(t,['setscale ' num2str(Kp)]);
%fclose(t);

end

