Double data = null;
if (device != null && device.getName() != null && !"".equals(device.getName().trim())) {
try {
TangoAttribute scalar = new TangoAttribute(device.getName());
if (scalar != null) {
data = scalar.readWritten(Double.class);
}
}
catch (DevFailed e) {
e.printStackTrace();
SalsaDeviceException salsaDeviceException = new SalsaDeviceException(