This commit is contained in:
gac-x11ma
2020-12-18 13:35:08 +01:00
parent 2a19fdf783
commit a5242bcaf4
4 changed files with 36 additions and 23 deletions

View File

@@ -254,13 +254,18 @@ public class Eiger extends Panel {
}
}
} catch (Exception ex){
showException(ex);
}
}//GEN-LAST:event_comboDepthActionPerformed
private void buttonTriggerDetectorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonTriggerDetectorActionPerformed
try {
evalAsync("eiger.start()");
evalAsync("eiger.start()").handle((ret,ex)->{
if (ex!=null){
showException((Exception)ex);
}
return ret;
});
} catch (Exception ex) {
showException(ex);
}
@@ -273,6 +278,7 @@ public class Eiger extends Panel {
mode.write(value);
}
} catch (Exception ex){
showException(ex);
}
}//GEN-LAST:event_comboModeActionPerformed
@@ -282,13 +288,18 @@ public class Eiger extends Panel {
exposure.write((Double)spinnerExpusure.getValue());
}
} catch (Exception ex){
showException(ex);
}
}//GEN-LAST:event_spinnerExpusureStateChanged
private void buttonStopDetectorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonStopDetectorActionPerformed
try {
evalAsync("eiger.stop()");
evalAsync("eiger.start()").handle((ret,ex)->{
if (ex!=null){
showException((Exception)ex);
}
return ret;
});
} catch (Exception ex) {
showException(ex);
}