Example #1
0
 def __init__(self, pvname, label=None, units=''):
     Saveable.__init__(self, pvname, label=label, units=units)
     self.pvname = pvname
     if label is None:
         label = pvname
     self.label = label
     self.units = units
     self.clear()
Example #2
0
 def __init__(self, pvname, label=None, units=''):
     Saveable.__init__(self, pvname, label=label, units=units)
     self.pv = get_pv(pvname)
     if label is None:
         label = pvname
     self.label = label
     self.units = units
     self.clear()
Example #3
0
 def __init__(self, prefix, label=None, **kws):
     Saveable.__init__(self, prefix, label=label, **kws)
     self.prefix = prefix
     self.label = label
     if self.label is None:
         self.label = self.prefix
     self.trigger = None
     self.counters = []
     self.dwelltime_pv = None
     self.dwelltime = None
     self._mode     = SCALER_MODE
     self.extra_pvs = []
     self._repr_extra = ''
     self._savevals = {}
     if self.trigger_suffix is not None:
         self.trigger = Trigger("%s%s" % (prefix, self.trigger_suffix))
Example #4
0
 def __init__(self, prefix, label=None, scandb=None, **kws):
     Saveable.__init__(self, prefix, label=label, **kws)
     self.prefix = prefix
     self.label = label
     self.scandb = scandb
     self.fnum = 1
     if self.label is None:
         self.label = self.prefix
     self.trigger = None
     self.counters = []
     self.dwelltime_pv = None
     self.dwelltime = None
     self._mode = SCALER_MODE
     self.data_dir = None
     self.arm_delay = 0.00
     self.start_delay = 0.05
     self.extra_pvs = []
     self._repr_extra = ''
     self._savevals = {}
     if self.trigger_suffix is not None:
         self.trigger = Trigger("%s%s" % (prefix, self.trigger_suffix))
Example #5
0
 def __init__(self, prefix, label=None, scandb=None, **kws):
     Saveable.__init__(self, prefix, label=label, **kws)
     self.prefix = prefix
     self.label = label
     self.scandb = scandb
     self.fnum = 1
     if self.label is None:
         self.label = self.prefix
     self.trigger = None
     self.counters = []
     self.dwelltime_pv = None
     self.dwelltime = None
     self._mode     = SCALER_MODE
     self.data_dir = None
     self.arm_delay   = 0.00
     self.start_delay = 0.05
     self.extra_pvs = []
     self._repr_extra = ''
     self._savevals = {}
     if self.trigger_suffix is not None:
         self.trigger = Trigger("%s%s" % (prefix, self.trigger_suffix))