// If it is a spectrum we search the YActuator element
value = getValueAtIndex(scanServerDeviceName, attributeName, y);
} else if ((x >= 0) && (y >= 0)) {
try {
TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/" + attributeName);
double[] 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);