示例#1
0
# Start taking the pictures
imagetime = s.tcur
if "manta" in cameras:
    (s,SERIESDT) = \
          manta.Manta2_SmartBackground( s, MANTA.exp, DL.light, \
                                        noatomsdt, bglist,  bgdictPRETOF, \
                                        enforcelight = notusearb)

if 'andor' in cameras:
    s.tcur = imagetime
    print "Current time before Andor1 = ", s.tcur
    (s,SERIESDT) = \
          andor.KineticSeries4_SmartBackground( s, ANDOR.exp, DL.light, \
                                                noatomsdt, bglist,  bgdictPRETOF, \
                                                trigger='cameratrig',\
                                                enforcelight = notusearb,\
                                                bgdictPAST= bgdictPast )
    print "Current time after Andor1 =", s.tcur

if 'andor2' in cameras:
    s.tcur = imagetime
    print "Current time before Andor2 = ", s.tcur
    s,SERIESDT =  \
         andor.KineticSeries4_SmartBackground( s, ANDOR.exp, DL.light, \
                                               noatomsdt, bglist, bgdictPRETOF, \
                                               trigger='cameratrig2',\
                                               enforcelight = notusearb,\
                                               bgdictPAST= bgdictPast )
    print "Current time after Andor2 = ", s.tcur
示例#2
0
    s.wait(ANDOR.noatoms)
    #PICTURE OF BACKGROUND
    s = andor.AndorKinetics(s, MANTA.exp, DL.light, 0,
                            trigger='cameratrig') if "andor" in cameras else s
    s = andor.AndorKinetics(
        s, MANTA.exp, DL.light, 0,
        trigger='cameratrig2') if "andor2" in cameras else s

    gen.save_to_report('ANDOR', 'saveframes', 2)

else:
    if "andor" in cameras:
        (s,
         SERIESDT) = andor.KineticSeries4_SmartBackground(s,
                                                          ANDOR.exp,
                                                          DL.light,
                                                          ANDOR.noatoms,
                                                          bg,
                                                          trigger='cameratrig')

        if "andor2" in cameras:
            s.wait(-SERIESDT)

    if "andor2" in cameras:
        s, SERIESDT = andor.KineticSeries4_SmartBackground(
            s, ANDOR.exp, DL.light, ANDOR.noatoms, bg, trigger='cameratrig2')

s.wait(20.0)

#HERE TURN OFF ALL LIGHT THAT COULD GET TO THE MANTA
s.digichg('odtttl', 0)
s.digichg('odt7595', 0)
示例#3
0
bg = [
    'odtttl', 'irttl1', 'irttl2', 'irttl3', 'greenttl1', 'greenttl2',
    'greenttl3'
]
bgdict = {}
for ch in bg:
    bgdict[ch] = s.digistatus(ch)

#TAKE PICTURES
#####light = this is 'probe', 'motswitch' or 'bragg'
#####camera = this is 'andor' or 'manta'
if lbf.light == 'bragg':
    s = manta.OpenShutterBragg(s, lbf.shutterdelay)

if lbf.camera == 'andor':
    s, SERIESDT = andor.KineticSeries4_SmartBackground(s, Andor.exp, lbf.light,
                                                       Andor.noatoms, bg)

elif lbf.camera == 'manta':
    #PICTURE OF ATOMS
    s = manta.MantaPicture(s, Manta.exp, lbf.light, 1)
    s.wait(Manta.noatoms)
    #RELEASE FROM ODT AND LATTICE
    s.digichg('quick2', 0)
    s.digichg('field', 0)
    s.digichg('odtttl', 0)
    s.digichg('odt7595', 0)
    s.digichg('ipgttl', 0)
    s.digichg('greenttl1', 0)
    s.digichg('greenttl2', 0)
    s.digichg('greenttl3', 0)
    s.digichg('irttl1', 0)