def filter_wheel(MainFrame, scope):
    from PYME.Acquire.Hardware.FilterWheel import WFilter, FiltFrame, FiltWheel
    filtList = [
        WFilter(1, 'EMPTY', 'EMPTY', 0),
        WFilter(2, 'ND.5', 'UVND 0.5', 0.5),
        WFilter(3, 'ND1', 'UVND 1', 1),
        WFilter(4, 'EMPTY', 'EMPTY', 0),
        WFilter(5, 'ND2', 'UVND 2', 2),
        WFilter(6, 'ND4.5', 'UVND 4.5', 4.5)
    ]

    scope.filterWheel = FiltWheel(filtList, 'COM5', dichroic=None)
    fpan = FiltFrame(MainFrame, scope.filterWheel)
    scope.filterWheel.SetFilterPos("ND4.5")
    MainFrame.toolPanels.append((fpan, 'Filter Wheel', False, False))
Beispiel #2
0
#    scope.piezos.append((scope.pzx, 1, 'X Piezo'))
#    scope.piezos.append((scope.pzy, 1, 'Y Piezo'))
#    scope.piezos.append((scope.pzz, 1, 'Z Piezo'))
#
#    #centre the piezos
#    scope.pzx.MoveTo(0,50)
#    scope.pzy.MoveTo(0,50)
#    scope.pzz.MoveTo(0,40)
#else:
#    raise HWNotPresent
#
#""")

from PYME.Acquire.Hardware.FilterWheel import WFilter, FiltFrame
filtList = [
    WFilter(1, 'EMPTY', 'EMPTY', 0),
    WFilter(2, 'ND.5', 'UVND 0.5', 0.5),
    WFilter(3, 'ND1', 'UVND 1', 1),
    WFilter(4, 'EMPTY', 'EMPTY', 0),
    WFilter(5, 'ND2', 'UVND 2', 2),
    WFilter(6, 'ND4.5', 'UVND 4.5', 4.5)
]

InitGUI("""
try:
    scope.filterWheel = FiltFrame(MainFrame, filtList)
    scope.filterWheel.SetFilterPos("ND4.5")
    toolPanels.append((scope.filterWheel, 'Filter Wheel'))
except:
    print('Error starting filter wheel ...')
""")
Beispiel #3
0
#
#    scope.piezos.append((scope.pzx, 1, 'X Piezo'))
#    scope.piezos.append((scope.pzy, 1, 'Y Piezo'))
#    scope.piezos.append((scope.pzz, 1, 'Z Piezo'))
#
#    #centre the piezos
#    scope.pzx.MoveTo(0,50)
#    scope.pzy.MoveTo(0,50)
#    scope.pzz.MoveTo(0,40)
#else:
#    raise HWNotPresent
#
#''')
    
from PYME.Acquire.Hardware.FilterWheel import WFilter, FiltFrame
filtList = [WFilter(1, 'EMPTY', 'EMPTY', 0),
    WFilter(2, 'ND.5' , 'UVND 0.5', 0.5),
    WFilter(3, 'ND1'  , 'UVND 1'  , 1),
    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 ...'
''')
Beispiel #4
0
time1.WantNotification.append(scope.lightpath.Poll)

MetaDataHandler.provideStartMetadata.append(scope.dichroic.ProvideMetadata)
MetaDataHandler.provideStartMetadata.append(scope.lightpath.ProvideMetadata)
''')  # % GetComputerName())

InitGUI('''
from PYME.Acquire.Hardware import spacenav
scope.spacenav = spacenav.SpaceNavigator()
scope.CleanupFunctions.append(scope.spacenav.close)
scope.ctrl3d = spacenav.SpaceNavPiezoCtrl(scope.spacenav, scope.piFoc, scope.xystage)
''')

from PYME.Acquire.Hardware.FilterWheel import WFilter, FiltFrame, FiltWheel
filtList = [
    WFilter(1, 'LF405', 'LF405', 0),
    WFilter(2, 'LF488', 'LF488', 0),
    WFilter(3, 'LF561', 'LF561', 0),
    WFilter(4, '647LP', '647LP', 0),
    WFilter(5, 'Cy7', 'Cy7', 0),
    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 ...'