String scanServerName = context.getScanServerName();
if (TangoDeviceHelper.isDeviceRunning(scanServerName)) {
try {
DeviceProxy scanServerProxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
if (scanServerProxy != null) {
scanServerProxy.command_inout("Pause");
// System.out.println(scanServerName + "Pause");
}
} catch (DevFailed e) {
throw new SalsaDeviceException("Error : cannot pause the scan : " + DevFailedUtils.toString(e), e);
}