Class ReadbackSetRecord


  • public class ReadbackSetRecord
    extends Object
    record to cache and synchronize readback and setpoint values
    • Constructor Detail

      • ReadbackSetRecord

        public ReadbackSetRecord​(xal.smf.AcceleratorNode node,
                                 xal.ca.Channel readChannel,
                                 xal.ca.Channel setChannel)
        Constructor
      • ReadbackSetRecord

        public ReadbackSetRecord​(xal.smf.AcceleratorNode node,
                                 xal.ca.Channel firstChannel,
                                 xal.ca.Channel secondChannel,
                                 double conversionFactor)
        Constructor for conversion factor It is assumed that the first channel holds the real initial configuration
    • Method Detail

      • getNode

        public xal.smf.AcceleratorNode getNode()
        get the accelerator node
      • getReadbackChannel

        public xal.ca.Channel getReadbackChannel()
        get the readback channel
      • getSetpointChannel

        public xal.ca.Channel getSetpointChannel()
        get the setpoint channel
      • getLastSetpoint

        public double getLastSetpoint()
        get the last setpoint value
      • getLastReadback

        public double getLastReadback()
        get the last readback value
      • setLastSetpoint

        public void setLastSetpoint​(Double value)
      • updateReadback

        public void updateReadback​(double basisValue,
                                   Map<xal.ca.Channel,​Double> noiseMap,
                                   Map<xal.ca.Channel,​Double> staticErrorMap,
                                   xal.ca.PutListener listener)
                            throws Exception
        update the readback from the setpoint, noise and static error
        Throws:
        Exception
      • updateReadback

        public void updateReadback​(Map<xal.ca.Channel,​Double> noiseMap,
                                   Map<xal.ca.Channel,​Double> staticErrorMap,
                                   xal.ca.PutListener listener)
                            throws Exception
        update the readback from the setpoint, noise and static error
        Throws:
        Exception
      • updateConversion

        public void updateConversion()
        When two channel sets are connected through a conversion factor, update these (do this before updating readback/set records)