Closedown
This commit is contained in:
@@ -43,7 +43,7 @@ public class PowerSupply extends DeviceBase implements BitMask {
|
||||
super(name);
|
||||
this.setCache(10.0);
|
||||
this.prefix=prefix;
|
||||
|
||||
|
||||
moduleVoltageRamp = new ChannelDouble(name + " moduleVoltageRamp", prefix + ":RAMP:2");
|
||||
moduleCurrentRamp = new ChannelDouble(name + " moduleCurrentRamp", prefix + ":IRAMP:2");
|
||||
|
||||
@@ -142,10 +142,9 @@ public class PowerSupply extends DeviceBase implements BitMask {
|
||||
@Override
|
||||
protected void doUpdate() throws InterruptedException, DeviceException {
|
||||
super.doUpdate();
|
||||
try {
|
||||
|
||||
try {
|
||||
channelActualVoltage.update();
|
||||
channelActualCurrent.update();
|
||||
channelActualCurrent.update();
|
||||
setCache(new double[]{channelActualVoltage.getValue(), channelActualCurrent.getValue()});
|
||||
} catch (Exception ex) {
|
||||
throw new DeviceException(ex);
|
||||
|
||||
Reference in New Issue
Block a user