Closedown

This commit is contained in:
sfop
2016-07-06 12:51:08 +02:00
parent f169b01007
commit 5c0e56bfad
2 changed files with 17 additions and 8 deletions

View File

@@ -33,9 +33,11 @@ public class GunSolenoidAlignment extends Panel {
public void onNewRecord(Scan scan, ScanRecord record) {
try {
if (running) {
double error_x = 0.2;
double error_y = 0.4;
scanSeries.appendData((Double) record.getValues()[0], (Double) record.getValues()[1], error_x, error_y);
double x = (Double) record.getValues()[0];
double y = (Double) record.getValues()[1];
double error_x = (Double) record.getValues()[2];
double error_y = (Double) record.getValues()[3];
scanSeries.appendData(x, y, error_x, error_y);
progressBar.setValue((int) (1000.0 * record.getIndex() / scan.getNumberOfRecords()));
}
} catch (Exception ex) {