Closedown

This commit is contained in:
boccioli_m
2015-06-17 16:59:53 +02:00
parent 02460dee30
commit fbdb3c1752
3 changed files with 9 additions and 18 deletions

View File

@@ -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);