Closedown

This commit is contained in:
gobbo_a
2017-04-13 11:05:05 +02:00
parent a73161fa38
commit 4fcf1fa022
10 changed files with 185 additions and 117 deletions

View File

@@ -347,7 +347,8 @@ public class SchottkyScan extends Panel {
private void buttonSetActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonSetActionPerformed
try {
String cmd = "caput('SINEG01-RSYS:SET-VSUM-PHASE-OFFSET-BASE', -" + spinnerPhaseRef.getValue() + ")";
double phaseOffset = -((Double)spinnerPhaseRef.getValue());
String cmd = "caput('SINEG01-RSYS:SET-VSUM-PHASE-OFFSET-BASE', " + phaseOffset + ")";
cmd += "; " + "caput('SINEG01-RSYS:CMD-LOAD-CALIB-BEAM', 1)";
evalAsync(cmd).handle((ret, ex) -> {
if (ex != null){