@Override
 protected void createObject() throws ConfigurationNotFoundException {
   SimplePvType simplePv =
       getEpicsConfiguration().getConfiguration(deviceName, SimplePvType.class);
   String recordName = simplePv.getRECORD().getPv();
   epicsMonitor = new EpicsMonitor();
   epicsMonitor.setName(name);
   epicsMonitor.setPvName(recordName);
 }
Пример #2
0
 /**
  * creates all required channels
  *
  * @param speed config2
  * @throws FactoryException
  */
 private void createChannelAccess(SimplePvType speed, SimpleBinaryType enable)
     throws FactoryException {
   try {
     enableChannel = channelManager.createChannel(enable.getRECORD().getPv(), sml, false);
     speedChannel = channelManager.createChannel(speed.getRECORD().getPv(), false);
     // acknowledge that creation phase is completed
     channelManager.tryInitialize(100);
     channelManager.creationPhaseCompleted();
   } catch (Throwable th) {
     throw new FactoryException("failed to create all channels", th);
   }
 }