Search in sources :

Example 1 with ScanStart

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

the class AreaDetectorRunnableDevice method scanStart.

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

Aggregations

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