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()
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])
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)
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)
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)