Package xal.smf.impl

Class WireScanner.TrgConfig

All Implemented Interfaces:
Cloneable, DataListener
Enclosing class:
WireScanner

public static class WireScanner.TrgConfig extends ParameterSet
Data structure containing configuration parameters for DAQ triggering.
Since:
Dec 16, 2009
Author:
Christopher K. Allen
  • Field Details

    • FLD_MAP

      public static final ScadaFieldMap FLD_MAP
      Map of field names to SCADA field Descriptors
    • delay

      @Field(type=double.class, ctrl=true, hndRb="TrgCfgDelayRb", hndSet="TrgCfgDelaySet") public double delay
      Time delay between beam-on event and actual DAQ start. NOTE: this value may be negative indicating DAQ before the beam-on event (thus, sampling only noise)
    • event

      @Field(type=int.class, ctrl=true, hndRb="TrgCfgTrigEventRb", hndSet="TrgCfgTrigEventSet") public int event
      Event code to trigger data acquisition - values 0,...,256
  • Constructor Details

    • TrgConfig

      public TrgConfig()
      Create a new, uninitialized DaqConfig object.
      Since:
      Dec 20, 2009
    • TrgConfig

      public TrgConfig(DataAdaptor daptSrc)
      Create a new TrgConfig object initialized from the given data source.
      Parameters:
      daptSrc - persistent data store containing data structure field values
      Since:
      Mar 17, 2010
    • TrgConfig

      public TrgConfig(ProfileDevice ws) throws ConnectionException, GetException
      Create a new TrgConfig object initialize with values fetched from the given device.
      Parameters:
      ws - data acquisition device
      Throws:
      ConnectionException - unable to connect to a parameter read back channel
      GetException - general field initialization exception
      Since:
      Dec 16, 2009
  • Method Details

    • acquire

      Convenience method for retrieving a new initialized data structure populated from the given device state.
      Parameters:
      ws - data acquisition device
      Returns:
      New data populated structure
      Throws:
      ConnectionException - unable to connect parameter read back channel
      GetException - general field initialization exception
      Since:
      Dec 16, 2009
    • setTrigEvent

      public void setTrigEvent(ProfileDevice.TRGEVT evt)
      Sets the value of the event field using the appropriate TRGEVT enumeration constant.
      Parameters:
      evt - trigger event code
      Since:
      Jan 19, 2010
    • getTrigEvent

      public ProfileDevice.TRGEVT getTrigEvent()
      Returns the triggering event code taken from the raw value field event of this data structure.
      Returns:
      the trigger event converted from the raw field.
      Since:
      Jan 19, 2010