def lasers(scope): from PYME.Acquire.Hardware import ioslave from PYME.Acquire.Hardware import phoxxLaser #slave = ioslave.IOSlave('COM3') #scope.l671 = ioslave.DigitalShutter('l671', scopeState = scope.state, ios=slave, pin=13) scope.l642 = phoxxLaser.PhoxxLaser('l642', portname='COM4', scopeState=scope.state, power_fudge=0.98) scope.CleanupFunctions.append(scope.l642.Close) scope.lasers = [ scope.l642, ] #scope.l671]
WFilter(4, 'ND2', 'UVND 2', 2), WFilter(5, 'ND3' , 'UVND 3' , 3), WFilter(6, 'ND4' , 'UVND 4' , 4)] InitGUI(''' try: scope.filterWheel = FiltFrame(MainFrame, filtList, 'COM4') scope.filterWheel.SetFilterPos("ND4") toolPanels.append((scope.filterWheel, 'Filter Wheel')) except: print 'Error starting filter wheel ...' ''') from PYME.Acquire.Hardware import phoxxLaser scope.l642 = phoxxLaser.PhoxxLaser('642') scope.StatusCallbacks.append(scope.l642.GetStatusText) scope.lasers = [scope.l642] #DigiData #scope.lasers = [] #InitBG('DigiData', ''' #from PYME.Acquire.Hardware.DigiData import DigiDataClient #dd = DigiDataClient.getDDClient() # # #from PYME.Acquire.Hardware import lasers #scope.l490 = lasers.DigiDataSwitchedLaser('490',dd,4) #scope.l405 = lasers.DigiDataSwitchedLaserInvPol('405',dd,0) ##scope.l543 = lasers.DigiDataSwitchedAnalogLaser('543',dd,0) ##scope.l671 = lasers.DigiDataSwitchedAnalogLaser('671',dd,1)
WFilter(6, 'EMPTY', 'EMPTY', 0) ] InitGUI(''' try: scope.filterWheel = FiltWheel(filtList, 'COM11', dichroic=scope.dichroic) #scope.filterWheel.SetFilterPos("LF488") scope.filtPan = FiltFrame(MainFrame, scope.filterWheel) toolPanels.append((scope.filtPan, 'Filter Wheel')) except: print 'Error starting filter wheel ...' ''') #DigiData from PYME.Acquire.Hardware import phoxxLaser, cobaltLaser, ioslave scope.l642 = phoxxLaser.PhoxxLaser('642', portname='COM4') scope.CleanupFunctions.append(scope.l642.Close) scope.l488 = phoxxLaser.PhoxxLaser('488', portname='COM5') scope.CleanupFunctions.append(scope.l488.Close) scope.l405 = phoxxLaser.PhoxxLaser('405', portname='COM6') scope.CleanupFunctions.append(scope.l405.Close) scope.l561 = cobaltLaser.CobaltLaser('561', portname='COM7') scope.lAOM = ioslave.AOMLaser('AOM') scope.lasers = [scope.l405, scope.l488, scope.l561, scope.lAOM, scope.l642] from PYME.Acquire.Hardware import priorLumen scope.arclamp = priorLumen.PriorLumen('Arc Lamp', portname='COM1') scope.lasers.append(scope.arclamp) InitGUI(''' from PYME.Acquire import lasersliders
WFilter(4, 'ND2', 'UVND 2', 2), WFilter(5, 'ND3', 'UVND 3', 3), WFilter(6, 'ND4', 'UVND 4', 4) ] InitGUI(''' try: scope.filterWheel = FiltFrame(MainFrame, filtList, hwconfig['Filterwheel'].portname()) scope.filterWheel.SetFilterPos("ND4") toolPanels.append((scope.filterWheel, 'Filter Wheel')) except: print('Error starting filter wheel ...') ''') from PYME.Acquire.Hardware import phoxxLaser scope.l642 = phoxxLaser.PhoxxLaser('642', portname=hwconfig['Laser642'].portname()) scope.StatusCallbacks.append(scope.l642.GetStatusText) from PYME.Acquire.Hardware import lasers sb = lasers.SBox(com_port=hwconfig['Laser671'].portname()) scope.l671 = lasers.SerialSwitchedLaser('671', sb, 0) from PYME.Acquire.Hardware import cobaltLaser scope.l405 = cobaltLaser.CobaltLaser( '405', portname=hwconfig['Laser405'].portname(), minpower=0.001, maxpower=0.1) # minpower, maxpower in Watts from PYME.Acquire.Hardware import cobaltLaser scope.l561 = cobaltLaser.CobaltLaser('561',
WFilter(6, 'EMPTY', 'EMPTY', 0) ] InitGUI( """ scope.filterWheel = FiltWheel(filtList, 'COM11', dichroic=scope.dichroic) #scope.filterWheel.SetFilterPos("LF488") scope.filtPan = FiltFrame(MainFrame, scope.filterWheel) toolPanels.append((scope.filtPan, 'Filter Wheel')) """, 'Filter Wheel') #DigiData from PYME.Acquire.Hardware import phoxxLaser, cobaltLaser, ioslave scope.l642 = phoxxLaser.PhoxxLaser('l642', portname='COM4', scopeState=scope.state) scope.CleanupFunctions.append(scope.l642.Close) scope.l488 = phoxxLaser.PhoxxLaser('l488', portname='COM5', scopeState=scope.state) scope.CleanupFunctions.append(scope.l488.Close) scope.l405 = phoxxLaser.PhoxxLaser('l405', portname='COM6', scopeState=scope.state) scope.CleanupFunctions.append(scope.l405.Close) scope.l561 = cobaltLaser.CobaltLaser('l561', portname='COM7', scopeState=scope.state) scope.lAOM = ioslave.AOMLaser('AOM', scopeState=scope.state) scope.lasers = [scope.l405, scope.l488, scope.l561, scope.lAOM, scope.l642]