Beispiel #1
0
 def __init__(self, parent=None):
     ScanEvent.__init__(self, parent)
     self.axis = 0
     self.N = 257
     self.dv = 0.1
     self.propNames = ["Axis", "# Steps", "Step"]
     self.is_loop = True
     self.config = ["axis", "N", "dv"]
Beispiel #2
0
 def __init__(self, parent = None):
     ScanEvent.__init__(self, parent)
     self.instr = 0
     self.instrlist = []
     self.quantity = 0
     self.tag = "tmp"
     self.propNames = ["Instrument","Quantity","Tag"]
     self.config = ["instr","quantity","tag"]
Beispiel #3
0
 def __init__(self, parent = None):
     ScanEvent.__init__(self, parent)
     # Generic read
     self.input = 0
     self.propNames = ["Input"]
     self.is_input = True
     self.is_visible = False
     self.config = ["input"]
Beispiel #4
0
 def __init__(self, parent=None):
     ScanEvent.__init__(self, parent)
     self.is_display = True
     self.canvas = None
     self.can_plot = True
     self.auto_refresh = True
     self.clock = 0
     pub.subscribe(self.set_canvas, "broadcast_canvas")
     pub.subscribe(self.set_refresh, "broadcast_refresh")
Beispiel #5
0
 def __init__(self, parent = None):
     ScanEvent.__init__(self, parent)
     self.axis = 0
     self.axlist = []
     self.position = 0.0
     self.relative = False
     self.propNames = ["Axis","Position","Relative"]
     self.config = ["axis","position","relative"]
     self.is_axis = True
Beispiel #6
0
 def __init__(self, parent = None):
     ScanEvent.__init__(self, parent)
     self.filename = ""
     self.fclass = ""
     self.autoname = True
     self.propNames = ["File format","File name","Automatic"]
     self.is_save = True
     self.config = ["fclass","filename","autoname"]
     self.filter = None
Beispiel #7
0
 def __init__(self, parent = None):
     ScanEvent.__init__(self, parent)
     self.filename = ""
     self.autoname = True
     self.propNames = ["File name","Automatic"]
     self.is_save = True
     self.is_visible = False
     self.config = ["filename","autoname"]
     self.filter = None
Beispiel #8
0
 def __init__(self, parent=None):
     ScanEvent.__init__(self, parent)
     self.axis = 0
     self.min = 0.0
     self.max = 25.6
     self.N = 257
     self.dv = 0.1
     self.propNames = ["Axis", "Minimum", "Maximum", "# Steps", "Step"]
     self.is_loop = True
     self.config = ["axis", "N", "min", "max", "dv"]
Beispiel #9
0
 def __init__(self, parent = None):
     ScanEvent.__init__(self, parent)
     self.axis = 0
     self.axlist = []
     self.trlist = []
     self.step = 0.0
     self.delay = 0.1
     self.trigger = 0
     self.quantity = 0
     self.condition = 0
     self.condlist = ["Equal","Smaller than","Greater than","Increased by","Decreased by","Multiplied by","Divided by"]
     self.value = 1.0
     self.propNames = ["Axis","Step size","Delay","Trigger", "Quantity","Condition","Value"]
     self.config = ["axis","step","delay","trigger","quantity","condition","value"]
     self.is_axis = True
Beispiel #10
0
 def __init__(self, parent = None):
     """
         Initialization.
         Parameters:
             parent    -    parent control (wx.TreeCtrl)
     """
     ScanEvent.__init__(self, parent)
     self.is_loop = False # set to True if this event implements a loop of some sort
     self.is_display = False # set to True if this event is meant to display something (i.e. plot/print/...)
     self.is_save = False # set to True if this event saves data to somewhere
     self.is_axis = False # set to True if this event acts on axis devices
     self.is_input = False # set to True if this event acts on input devices
     self.is_active = True # set to True if this event is active by default
     self.is_visible = True # set to True if this event is visible in the interface
     self.can_run = True # tell if the event can run (set to True on reset)
     self.host = parent # parent control (wx.TreeCtrl)
     self.name = self.__extname__ # event display name (str)
     self.propNames = [] # property names, as displayed in the interface
     self.propNodes = [] # property values
     self.config = [] # variables to be saved in config files
Beispiel #11
0
 def __init__(self,parent=None):
     ScanEvent.__init__(self,parent)
     self.is_root = True
Beispiel #12
0
 def __init__(self, parent = None):
     ScanEvent.__init__(self, parent)
     self.instr = 0
     self.instrlist = []
     self.propNames = ["Instrument"]
     self.config = ["instr"]
Beispiel #13
0
 def __init__(self,parent=None):
     ScanEvent.__init__(self,parent)
     self.avg = 5
     self.propNames = ["Count"]
     self.is_loop = True
     self.config = ["avg"]