Search in sources :

Example 1 with ScanEnd

use of org.eclipse.scanning.api.annotation.scan.ScanEnd in project gda-core by openGDA.

the class AreaDetectorRunnableDevice method scanEnd.

/**
 * add call to {@link ADDetector#atScanEnd()} so decorators in collection strategy work to restore detector state.
 */
@Override
@ScanEnd
public void scanEnd(ScanInformation info) throws ScanningException {
    super.scanEnd(info);
    try {
        adDetector.atScanEnd();
        firstPointInScan = false;
    } catch (DeviceException e) {
        throw new ScanningException("Error calling atScanEnd", e);
    }
}
Also used : ScanningException(org.eclipse.scanning.api.scan.ScanningException) DeviceException(gda.device.DeviceException) ScanEnd(org.eclipse.scanning.api.annotation.scan.ScanEnd)

Aggregations

DeviceException (gda.device.DeviceException)1 ScanEnd (org.eclipse.scanning.api.annotation.scan.ScanEnd)1 ScanningException (org.eclipse.scanning.api.scan.ScanningException)1