Пример #1
0
 @Override
 public String getState() throws DeviceException {
   try {
     return positions.get(controller.cagetEnum(enableChannel));
   } catch (Throwable e) {
     throw new DeviceException("failed to get spin status ", e);
   }
 }
 /**
  * @return range values
  * @throws DeviceException
  */
 public String getRangeValue() throws DeviceException {
   try {
     short test = controller.cagetEnum(chRangeRBV);
     return positions.get(test);
   } catch (Throwable th) {
     throw new DeviceException("failed to get position from " + chRangeRBV.getName(), th);
   }
 }