Scienta test mode
This commit is contained in:
@@ -77,6 +77,7 @@ public final class ScientaPanel extends DevicePanel {
|
||||
getDevice().getCurrentStep().removeListener(progressListener);
|
||||
}
|
||||
super.setDevice(device);
|
||||
SwingUtils.setEnumCombo(comboLens,getDevice().getLensModeClass());
|
||||
cameraPanel.setDevice(device);
|
||||
if (device == null) {
|
||||
stopTimer();
|
||||
@@ -134,7 +135,7 @@ public final class ScientaPanel extends DevicePanel {
|
||||
|
||||
public class DeviceData {
|
||||
|
||||
Scienta.LensMode lensMode;
|
||||
Object lensMode;
|
||||
Scienta.ElementSet elementSet;
|
||||
Scienta.AcquisitionMode acquisitionMode;
|
||||
Scienta.EnergyMode energyMode;
|
||||
@@ -179,12 +180,36 @@ public final class ScientaPanel extends DevicePanel {
|
||||
DeviceData dd = new DeviceData();
|
||||
try{
|
||||
//read-once
|
||||
dd.lensMode = getDevice().getLensMode();
|
||||
dd.elementSet = getDevice().getElementSet();
|
||||
dd.acquisitionMode = getDevice().getAcquisitionMode();
|
||||
dd.energyMode = getDevice().getEnergyMode();
|
||||
dd.detectorMode = getDevice().getDetectorMode();
|
||||
dd.pass = getDevice().getPassEnergy();
|
||||
try{
|
||||
dd.lensMode = getDevice().getLensMode();
|
||||
} catch (Exception ex){
|
||||
dd.lensMode = null;
|
||||
}
|
||||
try{
|
||||
dd.elementSet = getDevice().getElementSet();
|
||||
} catch (Exception ex){
|
||||
dd.elementSet = null;
|
||||
}
|
||||
try{
|
||||
dd.acquisitionMode = getDevice().getAcquisitionMode();
|
||||
} catch (Exception ex){
|
||||
dd.acquisitionMode = null;
|
||||
}
|
||||
try{
|
||||
dd.energyMode = getDevice().getEnergyMode();
|
||||
} catch (Exception ex){
|
||||
dd.energyMode = null;
|
||||
}
|
||||
try{
|
||||
dd.detectorMode = getDevice().getDetectorMode();
|
||||
} catch (Exception ex){
|
||||
dd.detectorMode = null;
|
||||
}
|
||||
try{
|
||||
dd.pass = getDevice().getPassEnergy();
|
||||
} catch (Exception ex){
|
||||
dd.pass = 0;
|
||||
}
|
||||
|
||||
dd.low = getDevice().getLowEnergy().getValue();
|
||||
dd.center = getDevice().getCenterEnergy().getValue();
|
||||
|
||||
Reference in New Issue
Block a user