TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/" + attributeName);
doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
int dimX = tangoAttribute.getDimX();
int dimY = tangoAttribute.getDimY();
if ((doubleValues != null) && (x < dimX) && (y < dimY)) {
DoubleMatrix matrix = new DoubleMatrix();
matrix.setFlatValue(doubleValues, dimY, dimX);
value = matrix.getValueAt(y, x);
}
} catch (DevFailed e) {
LOGGER.error("Cannot read {}/{} {}", scanServerDeviceName, attributeName,
DevFailedUtils.toString(e));
LOGGER.debug("Stack trace", e);