Skip to content
Snippets Groups Projects
Commit 036ab4d2 authored by Barbara B. Frosik's avatar Barbara B. Frosik
Browse files

fixing startExperiment code in Gui

parent 2aaef29d
No related branches found
No related tags found
No related merge requests found
......@@ -379,10 +379,10 @@ class ExperimentList extends JFrame
} catch (ParseException e) {
startDateDir = startDate;
}
dconnection.startDaq(experimentName, startDateDir);
if (drconnection != null) {
drconnection.startDaq(experimentName, startDateDir);
}
dconnection.startDaq(experimentName, startDateDir);
} else {
JOptionPane.showMessageDialog(null,"The experiment "+ experimentName +" did not start",
"Info",JOptionPane.WARNING_MESSAGE);
......@@ -402,10 +402,10 @@ class ExperimentList extends JFrame
startDateDir = startDate;
}
String experimentName = EXPERIMENT_PREFIX+(String)table.getModel().getValueAt(selection[i], Column.NAME.ordinal());
dconnection.startDaq(experimentName, startDateDir);
if (drconnection != null) {
drconnection.startDaq(experimentName, startDateDir);
}
dconnection.startDaq(experimentName, startDateDir);
}
table.clearSelection();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment