Exemplo n.º 1
0
 def connect(self, event):
     self.laser = hp816x()
     self.laser.connect(self.para1tc.GetValue(), reset=0, forceTrans=1)
     self.laser.panelClass = laserPanel.laserTopPanel  # Give the laser its panel class
     self.connectPanel.instList.append(self.laser)
     self.disconnectBtn.Enable()
     self.connectBtn.Disable()
 def connect(self, event):
     self.laser = hp816x();
     self.laser.connect(self.para1tc.GetValue(), reset=0, forceTrans=1)
     self.laser.panelClass = laserPanel.laserTopPanel # Give the laser its panel class
     self.connectPanel.instList.append(self.laser)
     self.disconnectBtn.Enable()
     self.connectBtn.Disable()
Exemplo n.º 3
0
 def __init__(self, opt_slot, opt_obv_chn, keith_dev, keith_chn1,
              keith_chn2, keith_imax):
     self.opt_slot = opt_slot
     self.opt_obv_chn = opt_obv_chn
     self.keith_dev = keith_dev
     self.keith_chn1 = keith_chn1
     self.keith_chn2 = keith_chn2
     self.keith_imax = keith_imax
     self.hp_mainframe = hp816x_instr.hp816x()
     super(PhysicalModel, self).__init__([1.0, 1.0])
Exemplo n.º 4
0
 def connect(self, event):
     laser = hp816x();
     laser.pwmSlotIndex = [0,1]
     laser.pwmSlotMap = [(0,0),(1,0)]
     laser.panelClass = laserPanel.laserTopPanel # Give the laser its panel class
     def dummyNumPanels(self):
         return 3
     funcType =type(laser.getNumPWMChannels)
     
     laser.getNumPWMChannels = funcType(dummyNumPanels, laser, hp816x)
     self.connectPanel.instList.append(laser)
Exemplo n.º 5
0
 def __init__(self, init_hidden_vars, init_params, opt_slot, opt_obv_chn,
              keith_dev, keith_chn1, keith_chn2, keith_imax):
     self.opt_slot = opt_slot
     self.opt_obv_chn = opt_obv_chn
     self.keith_dev = keith_dev
     self.keith_chn1 = keith_chn1
     self.keith_chn2 = keith_chn2
     self.keith_imax = keith_imax
     self.hp_mainframe = hp816x_instr.hp816x()
     # keyi modifications:
     self.observes = []
     super(PhysicalModel, self).__init__(init_hidden_vars, init_params)
Exemplo n.º 6
0
    def connect(self, event):
        laser = hp816x()
        laser.pwmSlotIndex = [0, 1]
        laser.pwmSlotMap = [(0, 0), (1, 0)]
        laser.panelClass = laserPanel.laserTopPanel  # Give the laser its panel class

        def dummyNumPanels(self):
            return 3

        funcType = type(laser.getNumPWMChannels)

        laser.getNumPWMChannels = funcType(dummyNumPanels, laser, hp816x)
        self.connectPanel.instList.append(laser)