Trace collected at: 2010-05-03 15:13:52.093000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[233]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[237]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[241]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[245]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[254]: elif(test=='st2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[263]: elif(test=='st3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[272]: elif(test=='tt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[283]: usage() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: msg = "Please specify which test to run. Options are:\n" +\ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[179]: print msg ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[180]: log(msg) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[284]: return Trace collected at: 2010-05-03 15:16:50.500000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[233]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[237]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[241]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[245]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[254]: elif(test=='st2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[263]: elif(test=='st3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[272]: elif(test=='tt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[273]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[276]: log("'tt3' - Trigger Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[277]: scr.dfb_pd_cfg(table=table) # Configure the DFB ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[28]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[30]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[32]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[36]: def main(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[28]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[30]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[32]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[36]: def main(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[37]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[41]: print >> log, "Setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[42]: if(DFB): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[81]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[99]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[115]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[133]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[161]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[179]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[207]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[225]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[238]: print >> log, "Table 12. Trigger Configuration 1, 13 Bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[241]: cmd.EFW_DFB_FB(FB_FREQBANDS=1, FB_ENA2=1, FB_ENA1=1, FB_SPD=0x0a, FB_SEL2=1, FB_SEL1=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[243]: cmd.EFW_DFB_FB_INT(FB_FREQBANDS=1, FB_ENA2=1, FB_ENA1=1, FB_SPD=0x0a, FB_SEL2=3, FB_SEL1=2) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[286]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[278]: cmd.EFW_DFBCONFIG(0x01) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[280]: spectra_test(apid=0x241, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[218]: log("Waiting for new configuration by discarding %d 0x%03x packets." % (discard_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[198]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[187]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[189]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[207]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[207]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[207]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: except GseosError.TSeqTimeoutError: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[203]: log("Timed out. Did not receive 1 ApID 0x%03x within %d second(s)." % (apid, timeout)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[204]: log("Reconfigure instrument to output ApID 0x%03x at a higher rate, or increase the script timeout value." % apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[205]: return True ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[220]: return Trace collected at: 2010-05-03 15:41:38.343000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[233]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[237]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[241]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[245]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[254]: elif(test=='st2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[263]: elif(test=='st3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[272]: elif(test=='tt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[273]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[276]: log("'tt3' - Trigger Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[277]: scr.dfb_pd_cfg(table=table) # Configure the DFB ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[28]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[30]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[32]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[36]: def main(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[28]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[30]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[32]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[36]: def main(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[37]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[41]: print >> log, "Setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[42]: if(DFB): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[81]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[99]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[115]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[133]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[161]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[179]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[207]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[225]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[238]: print >> log, "Table 12. Trigger Configuration 1, 13 Bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[241]: cmd.EFW_DFB_FB(FB_FREQBANDS=1, FB_ENA2=1, FB_ENA1=1, FB_SPD=0x0a, FB_SEL2=1, FB_SEL1=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[243]: cmd.EFW_DFB_FB_INT(FB_FREQBANDS=1, FB_ENA2=1, FB_ENA1=1, FB_SPD=0x0a, FB_SEL2=3, FB_SEL1=2) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[286]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[278]: cmd.EFW_DFBCONFIG(0x01) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[280]: spectra_test(apid=0x241, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[218]: log("Waiting for new configuration by discarding %d 0x%03x packets." % (discard_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[198]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[187]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[189]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[207]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[207]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[207]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: except GseosError.TSeqTimeoutError: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[203]: log("Timed out. Did not receive 1 ApID 0x%03x within %d second(s)." % (apid, timeout)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[204]: log("Reconfigure instrument to output ApID 0x%03x at a higher rate, or increase the script timeout value." % apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[205]: return True ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[220]: return Trace collected at: 2010-05-03 15:42:49.421000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[233]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[237]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[241]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[245]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[254]: elif(test=='st2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[263]: elif(test=='st3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[272]: elif(test=='tt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[273]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[276]: log("'tt3' - Trigger Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[277]: scr.dfb_pd_cfg(table=table) # Configure the DFB ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[28]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[30]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[32]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[36]: def main(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[28]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[30]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[32]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[36]: def main(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[37]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[41]: print >> log, "Setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[42]: if(DFB): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[81]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[99]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[115]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[133]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[161]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[179]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[207]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[225]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[238]: print >> log, "Table 12. Trigger Configuration 1, 13 Bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[241]: cmd.EFW_DFB_FB(FB_FREQBANDS=1, FB_ENA2=1, FB_ENA1=1, FB_SPD=0x0a, FB_SEL2=1, FB_SEL1=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[243]: cmd.EFW_DFB_FB_INT(FB_FREQBANDS=1, FB_ENA2=1, FB_ENA1=1, FB_SPD=0x0a, FB_SEL2=3, FB_SEL1=2) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[286]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[278]: cmd.EFW_DFBCONFIG(0x01) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[280]: spectra_test(apid=0x241, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[218]: log("Waiting for new configuration by discarding %d 0x%03x packets." % (discard_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[198]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[187]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[189]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: except GseosError.TSeqTimeoutError: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[203]: log("Timed out. Did not receive 1 ApID 0x%03x within %d second(s)." % (apid, timeout)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[204]: log("Reconfigure instrument to output ApID 0x%03x at a higher rate, or increase the script timeout value." % apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[205]: return True ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[220]: return Trace collected at: 2010-05-03 15:45:15.578000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[233]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[237]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[241]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[245]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[254]: elif(test=='st2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[263]: elif(test=='st3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[272]: elif(test=='tt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[273]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[276]: log("'tt3' - Trigger Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[277]: scr.dfb_pd_cfg(table=table) # Configure the DFB ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[28]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[30]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[32]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[36]: def main(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[28]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[30]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[32]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[36]: def main(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[37]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[41]: print >> log, "Setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[42]: if(DFB): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[81]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[99]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[115]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[133]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[161]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[179]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[207]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[225]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[245]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[253]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[259]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[260]: print >> log, "Table 15. Trigger Configuration 1, 7 Bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[263]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=1, FB_ENA1=1, FB_SPD=0x7, FB_SEL2=1, FB_SEL1=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[286]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[278]: cmd.EFW_DFBCONFIG(0x01) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[280]: spectra_test(apid=0x241, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[218]: log("Waiting for new configuration by discarding %d 0x%03x packets." % (discard_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[198]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[187]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[189]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[207]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[207]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[207]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[207]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[222]: log("Receiving packets from new DFB configuration as of UTC: %s" % numeric_conv.efw_datetime(time.time(), utc=True)[6]) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[225]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[226]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[198]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[187]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[189]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[207]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[207]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[207]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[207]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: return None