def __init__(self): Thread.__init__(self) self.prot = None self._stop = False self._frame = None self._paused = False self.lock = Mutex(recursive=True)
def __init__(self, dev): self.dev = dev self.lock = Mutex(recursive=True) self.stopped = False self.interval = 0.3 Thread.__init__(self)
def __init__(self, dev, driver, lock): Thread.__init__(self) self.lock = Mutex(QtCore.QMutex.Recursive) self.dev = dev self.driver = driver self.driverLock = lock self.cmds = {}
def __init__(self, ui): self.ui = ui self.manager = ui.manager self.clampName = ui.clampName Thread.__init__(self) self.lock = Mutex(QtCore.QMutex.Recursive) self.stopThread = True self.paramsUpdated = True
def __init__(self, laserDev, scannerDev): Thread.__init__(self) self._abort = False self._video = True self._closeShutter = True # whether to close shutter at end of acquisition self.lock = Mutex(recursive=True) self.manager = acq4.Manager.getManager() self.laserDev = laserDev self.scannerDev = scannerDev
def __init__(self, ui): Thread.__init__(self) self.ui = ui self.dm = self.ui.manager self.lock = Mutex(Qt.QMutex.Recursive) self.stopThread = True self.abortThread = False self.paused = False self._currentTask = None self._systrace = None
def __init__(self): self.pos = np.zeros(3) self.target = None self.speed = None self.velocity = None self._quit = False self.lock = Mutex() self.interval = 30e-3 self.lastUpdate = None self.currentMove = None Thread.__init__(self)
def __init__(self, dev, startState=None): Thread.__init__(self) self.lock = Mutex(QtCore.QMutex.Recursive) self.dev = dev self.port = self.dev.port if startState is None: self.pos = [0, 0] self.btns = [0, 0] else: self.pos = startState['pos'] self.btns = startState['btns']
def __init__(self, dev): self.dev = dev self.lock = Mutex(recursive=True) self.stopped = False self.interval = 0.3 self.nextMoveId = 0 self.moveRequest = None self._moveStatus = {} Thread.__init__(self)
def __init__(self, dev, driver, driverLock, scale, limits, maxSpd): Thread.__init__(self) self.lock = Mutex(QtCore.QMutex.Recursive) self.scale = scale self.mp285 = driver self.driverLock = driverLock #self.monitor = True self.update = False self.resolution = 'fine' self.dev = dev #self.port = port #self.pos = [0, 0, 0] #self.baud = baud self.velocity = [0, 0, 0] self.limits = deepcopy(limits) self.limitChanged = False self.maxSpeed = maxSpd
def __init__(self, ui): Thread.__init__(self) self.m = acq4.Manager.getManager() self._stackSize = 0 # size of currently recorded stack self._recording = False self.currentFrame = None self.frameLimit = None # Interaction with worker thread: self.lock = Mutex(QtCore.QMutex.Recursive) self.newFrames = [] # list of frames and the files they should be sored / appended to. # Attributes private to worker thread: self.currentStack = None # file handle of currently recorded stack self.startFrameTime = None self.lastFrameTime = None self.currentFrameNum = 0
def __init__(self, dev): Thread.__init__(self) self.dev = dev #self.cam = self.dev.getCamera() self.camLock = self.dev.camLock #size = self.cam.getSize() #self.state = {'binning': 1, 'exposure': .001, 'region': [0, 0, size[0]-1, size[1]-1], 'mode': 'No Trigger'} #self.state = self.dev.getParams(['binning', 'exposure', 'region', 'triggerMode']) self.stopThread = False self.lock = Mutex() self.acqBuffer = None #self.frameId = 0 self.bufferTime = 5.0 #self.ringSize = 30 self.tasks = [] ## This thread does not run an event loop, ## so we may need to deliver frames manually to some places self.connections = set() self.connectMutex = Mutex()
def __init__(self, dev, interval=0.1): Thread.__init__(self) self.dev = dev self.interval = interval
def __init__(self): self.lock = Mutex(recursive=True) self.stopped = False Thread.__init__(self)