#heights = range(0, 6000, 300) #heights = [0,10,20,30,40,50,60,70,80,90] #heights = [100,100,100,100,100,100,100,100,100,100] heights = range(0, 16000, 1000) ####################################### #for the branches ROOT.gROOT.ProcessLine(\ "struct Results{\ Int_t height;\ Int_t pin_avg;\ Int_t pin_std;\ };") from ROOT import Results results = Results() ######################################## tc = ROOT.TCanvas("can","can") sc.select_channel(channels[0]) sc.set_pulse_height(16383) sc.set_pulse_delay(1.0) sc.set_pulse_number(500) sc.set_fibre_delay(0) sc.set_trigger_delay(0) sc.disable_external_trigger() sc.set_pulse_width(16383) sc.fire() time.sleep(1)
import scope_actions from core.tellie_server import SerialCommand from common import parameters as p #for the branches ROOT.gROOT.ProcessLine(\ "struct Results{\ Int_t width;\ Int_t pin;\ Float_t scope_area;\ Float_t delay;\ Float_t delay_actual;\ };" ) from ROOT import Results results = Results() usb_conn = scope_connections.VisaUSB() scope = scopes.Tektronix3000(usb_conn) sc = SerialCommand() offset = 200e-6 #additional offset in delay def run_settings(n_pulse, chan, delay, width): delay_s = delay * 1e-3 t_run = n_pulse * (delay_s + offset) sc.select_channel(chan) sc.set_pulse_number(n_pulse) sc.set_pulse_delay(delay) sc.set_pulse_height(p._max_pulse_height)
#channels = [] #for i in range(4): # channels.append(i*4+1) #channels = [60,65,70,75] print channels widths = range(0,6000,200) ####################################### #for the branches ROOT.gROOT.ProcessLine(\ "struct Results{\ Int_t width;\ Int_t pin;\ };") from ROOT import Results results = Results() ######################################## tc = ROOT.TCanvas("can","can") sc.select_channel(channels[0]) sc.set_pulse_height(16383) sc.set_pulse_delay(1.0) sc.set_pulse_number(1000) sc.set_fibre_delay(0) sc.set_trigger_delay(0) sc.disable_external_trigger() sc.set_pulse_width(16383) sc.fire() time.sleep(1)
#channels = [] #for i in range(4): # channels.append(i*4+1) #channels = [60,65,70,75] print channels widths = range(0,9700,50) ####################################### #for the branches ROOT.gROOT.ProcessLine(\ "struct Results{\ Int_t width;\ Int_t pin;\ };") from ROOT import Results results = Results() ######################################## tc = ROOT.TCanvas("can","can") sc.select_channel(channels[0]) sc.set_pulse_height(16383) sc.set_pulse_delay(1.0) sc.set_pulse_number(1000) sc.set_fibre_delay(0) sc.set_trigger_delay(0) sc.disable_external_trigger() sc.set_pulse_width(16383) sc.fire() time.sleep(1)
import time import optparse import scope_actions #for the branches ROOT.gROOT.ProcessLine(\ "struct Results{\ Int_t width;\ Int_t pin;\ Float_t scope_area;\ Float_t delay;\ Float_t delay_actual;\ };") from ROOT import Results results = Results() usb_conn = scope_connections.VisaUSB() scope = scopes.Tektronix3000(usb_conn) sc = serial_command.SerialCommand() offset = 200e-6 #additional offset in delay def run_settings(n_pulse,chan,delay,width): delay_s = delay*1e-3 t_run = n_pulse * (delay_s+offset) sc.select_channel(chan) sc.set_pulse_number(n_pulse) sc.set_pulse_delay(delay) sc.set_pulse_height(16383)
#widths = range(0,6000,200) #heights = range(0, 6000, 300) #heights = [0,10,20,30,40,50,60,70,80,90] #heights = [100,100,100,100,100,100,100,100,100,100] heights = range(1000, 15000, 1000) ####################################### #for the branches ROOT.gROOT.ProcessLine(\ "struct Results{\ Int_t height;\ Int_t pin;\ };") from ROOT import Results results = Results() ######################################## tc = ROOT.TCanvas("can","can") sc.select_channel(channels[0]) sc.set_pulse_height(p._max_pulse_height) sc.set_pulse_delay(p._pulse_delay) sc.set_pulse_number(p._pulse_num) sc.set_fibre_delay(0) sc.set_trigger_delay(0) sc.disable_external_trigger() sc.set_pulse_width(p._max_pulse_width) sc.fire() time.sleep(p._medium_pause)
#heights = range(0, 6000, 300) #heights = [0,10,20,30,40,50,60,70,80,90] #heights = [100,100,100,100,100,100,100,100,100,100] heights = range(0, 16000, 1000) ####################################### #for the branches ROOT.gROOT.ProcessLine(\ "struct Results{\ Int_t height;\ Int_t pin_avg;\ Int_t pin_std;\ };" ) from ROOT import Results results = Results() ######################################## tc = ROOT.TCanvas("can", "can") sc.select_channel(channels[0]) sc.set_pulse_height(p._max_pulse_height) sc.set_pulse_delay(p._pulse_delay) sc.set_pulse_number(p._pulse_num) sc.set_fibre_delay(0) sc.set_trigger_delay(0) sc.disable_external_trigger() sc.set_pulse_width(p._max_pulse_width) sc.fire() time.sleep(p._medium_pause) pin = None
#channels = [] #for i in range(4): # channels.append(i*4+1) #channels = [60,65,70,75] print channels widths = range(0, 9700, 50) ####################################### #for the branches ROOT.gROOT.ProcessLine(\ "struct Results{\ Int_t width;\ Int_t pin;\ };" ) from ROOT import Results results = Results() ######################################## tc = ROOT.TCanvas("can", "can") sc.select_channel(channels[0]) sc.set_pulse_height(p._max_pulse_height) sc.set_pulse_delay(p._pulse_delay) sc.set_pulse_number(p._pulse_num) sc.set_fibre_delay(0) sc.set_trigger_delay(0) sc.disable_external_trigger() sc.set_pulse_width(p._max_pulse_width) sc.fire() time.sleep(p._medium_pause) pin = None