// If a scan result is ready, there is a data_01 attribute.
DeviceProxy scanServerProxy;
boolean ready;
scanServerProxy = getScanServerProxy(scanServerName);
try {
DeviceAttribute data01Attribute = scanServerProxy.read_attribute("data_01");
// If there is no data_01 attribute, the next line will throw a DevFailed exception.
double[] data01Array = AttributeHelper.extractToDoubleArray(data01Attribute);
ready = data01Array != null && data01Array.length != 0;
}
catch (DevFailed e) {