for (int xIndex = 0; xIndex < dimX; ++xIndex) {
doubleArray[yIndex * dimX + xIndex] = dataMatrix[yIndex][xIndex];
}
}
try {
attribute.writeImage(dimX, dimY, doubleArray);
}
catch (DevFailed e) {
e.printStackTrace();
SalsaDeviceException salsaDeviceException = new SalsaDeviceException(
"Error while trying to write the TangORB attribute value for the device "