if (TangoAttributeHelper.isAttributeRunning(scanServerName, INTEGRATION_TIMES)) {
DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanServerName, false);
if (deviceProxy != null) {
try {
DeviceAttribute deviceAttribute = deviceProxy.read_attribute(INTEGRATION_TIMES);
double[] values = deviceAttribute.extractDoubleArray();
if ((values != null) && (values.length > 0)) {
integrationTime = Double.valueOf(values[0] * 1000).intValue();
}
} catch (DevFailed e) {
LOGGER.error("Cannot read {}/{} {}", scanServerName, INTEGRATION_TIMES, DevFailedUtils.toString(e));