def initialize(): #pulser sequence seq = PulsedScan(pulser) pulser.new_sequence() seq.setVariables(**params) seq.defineSequence() pulser.program_sequence() #set logic pulser.switch_auto('axial', True) #high TTL corresponds to light ON pulser.switch_auto('110DP', False) #high TTL corresponds to light OFF pulser.switch_auto('866DP', False) #high TTL corresponds to light OFF pulser.switch_manual('crystallization', False) #high TTL corresponds to light OFF #set up data vault dv.cd(['','Experiments', experimentName, dirappend], True) dv.new('timetags',[('Power', 'dBm')],[('TimeTag','Sec','Sec')] ) params['cycleTime'] = seq.parameters.cycleTime dvParameters.saveParameters(dv, params)
def initialize(): global cycleTime #pulser sequence seq = PulsedScan(pulser) pulser.new_sequence() seq.setVariables(**params) seq.defineSequence() pulser.program_sequence() pulser.switch_auto('axial', True) #high TTL corresponds to light ON pulser.switch_auto('110DP', False) #high TTL corresponds to light OFF pulser.switch_auto('866DP', False) #high TTL corresponds to light OFF pulser.switch_manual('crystallization', False) #high TTL corresponds to light OFF #set up data vault dv.cd(['','Experiments', experimentName, dirappend], True) dv.new('fluorDiff',[('Iterations', 'Arb')],[('Counts','Counts / Sec','Counts / Sec')] ) params['cycleTime'] = seq.parameters.cycleTime params['plotLive'] = True cycleTime = params['cycleTime'] dvParameters.saveParameters(dv, params)
def initialize(): global cycleTime #pulser sequence seq = PulsedScan(pulser) pulser.new_sequence() seq.setVariables(**params) seq.defineSequence() pulser.program_sequence() pulser.switch_auto('axial', True) #high TTL corresponds to light ON pulser.switch_auto('110DP', False) #high TTL corresponds to light OFF pulser.switch_auto('866DP', False) #high TTL corresponds to light OFF pulser.switch_manual('crystallization', False) #high TTL corresponds to light OFF #set up data vault dv.cd(['', 'Experiments', experimentName, dirappend], True) dv.new('fluorDiff', [('Iterations', 'Arb')], [('Counts', 'Counts / Sec', 'Counts / Sec')]) params['cycleTime'] = seq.parameters.cycleTime params['plotLive'] = True cycleTime = params['cycleTime'] dvParameters.saveParameters(dv, params)