function FigureCloseCallback(src,callbackdata)
global canch1;
global running;
disp('Stopping canch1');
         running = 0;
         delete(gcf);
         canch1.stop;
         return;
end