Class BeamDumpApplication

java.lang.Object
org.scictrl.csshell.epics.server.application.AbstractApplication
org.scictrl.csshell.epics.server.application.BeamDumpApplication
All Implemented Interfaces:
org.scictrl.csshell.epics.server.Application, org.scictrl.csshell.epics.server.processor.OnDemandValueProcessor.ValueProvider

public class BeamDumpApplication extends org.scictrl.csshell.epics.server.application.AbstractApplication

BeamDumpApplication stores image (of a beam) into files on drive on event from tirgger PV called drops. Image is stored as array, additionally there is information of timestamp and of width and height of image.

Files are stored into directory provided with dataDir XML parameter and file names have prefix 'BeamDump-'. When dataDir contains more generated files than maxFiles parameter specifies, oldest files are deleted unil file number falls below max files limit.

Supported XML parameters

  • dropsPV - PV name for trigger record. Required.
  • imageHeightPV - PV name for record with image height. Required.
  • imageWidthPV - PV name for record with image width. Required.
  • imagePV - PV name for record with array containing image. Required.
  • maxFiles - maximal number generated filed, old files are removed if exceeded.
  • dataDir - location of generated files.

Application provides PVs with following suffixes:

  • Enabled - enables/disables the application.
  • Last:Image - last saved image.
  • Last:Time - last saved image timestamp.
  • Last:Time:Str - last saved image timestamp as human friendly string.
  • Dir - Directory to which array dump files are saved.
Author:
igor@scictrl.com
  • Field Summary

    Fields inherited from class org.scictrl.csshell.epics.server.application.AbstractApplication

    database, DEFAULT_NAME_DELIMITER, dynamicRecordCreator, ERROR_SUM, LINK_ERROR, LINK_ERROR_STRING, links, log, name, NAME_DELIMITER, nameDelimiter, records
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for BeamDumpApplication.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(String name, org.apache.commons.configuration.HierarchicalConfiguration config)
    protected void

    Methods inherited from class org.scictrl.csshell.epics.server.application.AbstractApplication

    activate, addRecord, addRecordOfCommandProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfOnDemandProcessor, addRecordOfOnLinkValueProcessor, configure, connectLinks, createNewStore, fullRecordName, getLinks, getName, getNameDelimiter, getNotNull, getRecord, getRecordErrorSum, getRecordLinkError, getRecordNames, getRecords, getStore, getStore, getValue, initialize, isActivated, isDynamicRecordCreator, log4debug, log4error, log4error, log4info, notifyRecordChange, notifyRecordWrite, processLinkChange, pushDoneCommandProcessor, reconnectLinks, resetOnDemandProcessor, restore, store, toString, updateErrorSum, updateErrorSum, updateLinkError, updateLinkError

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BeamDumpApplication

      public BeamDumpApplication()

      Constructor for BeamDumpApplication.

  • Method Details

    • configure

      public void configure(String name, org.apache.commons.configuration.HierarchicalConfiguration config)
      Specified by:
      configure in interface org.scictrl.csshell.epics.server.Application
      Overrides:
      configure in class org.scictrl.csshell.epics.server.application.AbstractApplication
    • notifyLinkChange

      protected void notifyLinkChange(String name)
      Overrides:
      notifyLinkChange in class org.scictrl.csshell.epics.server.application.AbstractApplication