Trace collected at: 2010-06-01 10:40:12.484000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[294]: print >> log, "Table 18. All Spectra and XSpectra Enabled, 112 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[296]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=2, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[297]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[298]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[299]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[300]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[301]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[302]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[303]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[305]: cmd.EFW_DFB_XSPEC1(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1, XSPEC_NAVG=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[306]: cmd.EFW_DFB_XSPEC2(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[307]: cmd.EFW_DFB_XSPEC3(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[308]: cmd.EFW_DFB_XSPEC4(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[309]: cmd.EFW_DFBCONFIG(APID=0xf) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[32]: log("Configuring the switch matrix") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[34]: scr.dfb_set_matrix(s, signal=['EF1'], others='gnd') ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[53]: channel_map = {'EF1': {'sig': [211], ../../GSEOS_scripts/DFB\dfb_set_matrix.py[89]: all_channels = channel_map.keys() ../../GSEOS_scripts/DFB\dfb_set_matrix.py[95]: if(others in channel_map['EF1'].keys()): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[96]: sig_gnd_open = signal + gnd + open ../../GSEOS_scripts/DFB\dfb_set_matrix.py[98]: others_list = [] ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[111]: matrix.reset(200) # open everything ../../GSEOS_scripts/DFB\dfb_set_matrix.py[112]: matrix.reset(300) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[115]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[116]: for item in gnd: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[119]: for item in open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[36]: log("configuring signal generator") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[37]: idn = my_ds345.get_idn() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[38]: log(idn) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[39]: my_ds345.set_func('sine') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[40]: my_ds345.set_ampl(2.5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[41]: my_ds345.set_mod_enable(False) # Disable the burst ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[42]: my_ds345.set_mod_type(0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[43]: my_ds345.write('MDWF 2') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[44]: my_ds345.write('RATE 0.001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[45]: my_ds345.write('STFR 0.000001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[46]: my_ds345.write('SPFR 8192') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[47]: my_ds345.set_mod_enable(True) # Enable the burst Trace collected at: 2010-06-01 11:05:40.328000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[311]: elif(table == 19): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[329]: elif(table == 20): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[330]: print >> log, "Table 20. All Spectra and XSpectra Enabled , 36 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[332]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=0, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[333]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[334]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[335]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[336]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[337]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[338]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[339]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[341]: cmd.EFW_DFB_XSPEC1(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1, XSPEC_NAVG=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[342]: cmd.EFW_DFB_XSPEC2(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[343]: cmd.EFW_DFB_XSPEC3(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[344]: cmd.EFW_DFB_XSPEC4(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[345]: cmd.EFW_DFBCONFIG(APID=0xf) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[32]: log("Configuring the switch matrix") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[34]: scr.dfb_set_matrix(s, signal=['EF1'], others='gnd') ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[53]: channel_map = {'EF1': {'sig': [211], ../../GSEOS_scripts/DFB\dfb_set_matrix.py[89]: all_channels = channel_map.keys() ../../GSEOS_scripts/DFB\dfb_set_matrix.py[95]: if(others in channel_map['EF1'].keys()): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[96]: sig_gnd_open = signal + gnd + open ../../GSEOS_scripts/DFB\dfb_set_matrix.py[98]: others_list = [] ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[111]: matrix.reset(200) # open everything ../../GSEOS_scripts/DFB\dfb_set_matrix.py[112]: matrix.reset(300) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[115]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[116]: for item in gnd: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[119]: for item in open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[36]: log("configuring signal generator") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[37]: idn = my_ds345.get_idn() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[38]: log(idn) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[39]: my_ds345.set_func('sine') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[40]: my_ds345.set_ampl(2.5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[41]: my_ds345.set_mod_enable(False) # Disable the burst ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[42]: my_ds345.set_mod_type(0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[43]: my_ds345.write('MDWF 2') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[44]: my_ds345.write('RATE 0.001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[45]: my_ds345.write('STFR 0.000001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[46]: my_ds345.write('SPFR 8192') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[47]: my_ds345.set_mod_enable(True) # Enable the burst Trace collected at: 2010-06-01 11:08:48.359000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[311]: elif(table == 19): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[312]: print >> log, "Table 19. All Spectra and XSpectra Enabled , 64 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[314]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=1, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[315]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[316]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[317]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[318]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[319]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[320]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[321]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[323]: cmd.EFW_DFB_XSPEC1(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1, XSPEC_NAVG=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[324]: cmd.EFW_DFB_XSPEC2(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[325]: cmd.EFW_DFB_XSPEC3(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[326]: cmd.EFW_DFB_XSPEC4(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[327]: cmd.EFW_DFBCONFIG(APID=0xf) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[203]: except GseosError.TSeqTimeoutError: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[204]: 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[205]: 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[206]: return True ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[32]: log("Configuring the switch matrix") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[34]: scr.dfb_set_matrix(s, signal=['EF1'], others='gnd') ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[53]: channel_map = {'EF1': {'sig': [211], ../../GSEOS_scripts/DFB\dfb_set_matrix.py[89]: all_channels = channel_map.keys() ../../GSEOS_scripts/DFB\dfb_set_matrix.py[95]: if(others in channel_map['EF1'].keys()): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[96]: sig_gnd_open = signal + gnd + open ../../GSEOS_scripts/DFB\dfb_set_matrix.py[98]: others_list = [] ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[111]: matrix.reset(200) # open everything ../../GSEOS_scripts/DFB\dfb_set_matrix.py[112]: matrix.reset(300) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[115]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[116]: for item in gnd: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[119]: for item in open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[36]: log("configuring signal generator") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[37]: idn = my_ds345.get_idn() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[38]: log(idn) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[39]: my_ds345.set_func('sine') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[40]: my_ds345.set_ampl(2.5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[41]: my_ds345.set_mod_enable(False) # Disable the burst ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[42]: my_ds345.set_mod_type(0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[43]: my_ds345.write('MDWF 2') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[44]: my_ds345.write('RATE 0.001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[45]: my_ds345.write('STFR 0.000001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[46]: my_ds345.write('SPFR 8192') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[47]: my_ds345.set_mod_enable(True) # Enable the burst Trace collected at: 2010-06-01 11:11:21.343000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[294]: print >> log, "Table 18. All Spectra and XSpectra Enabled, 112 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[296]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=2, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[297]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[298]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[299]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[300]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[301]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[302]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[303]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[32]: log("Configuring the switch matrix") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[34]: scr.dfb_set_matrix(s, signal=['EF1'], others='gnd') ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[53]: channel_map = {'EF1': {'sig': [211], ../../GSEOS_scripts/DFB\dfb_set_matrix.py[89]: all_channels = channel_map.keys() ../../GSEOS_scripts/DFB\dfb_set_matrix.py[95]: if(others in channel_map['EF1'].keys()): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[96]: sig_gnd_open = signal + gnd + open ../../GSEOS_scripts/DFB\dfb_set_matrix.py[98]: others_list = [] ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[111]: matrix.reset(200) # open everything ../../GSEOS_scripts/DFB\dfb_set_matrix.py[112]: matrix.reset(300) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[115]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[116]: for item in gnd: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[119]: for item in open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[36]: log("configuring signal generator") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[37]: idn = my_ds345.get_idn() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[38]: log(idn) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[39]: my_ds345.set_func('sine') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[40]: my_ds345.set_ampl(2.5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[41]: my_ds345.set_mod_enable(False) # Disable the burst ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[42]: my_ds345.set_mod_type(0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[43]: my_ds345.write('MDWF 2') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[44]: my_ds345.write('RATE 0.001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[45]: my_ds345.write('STFR 0.000001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[46]: my_ds345.write('SPFR 8192') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[47]: my_ds345.set_mod_enable(True) # Enable the burst Trace collected at: 2010-06-01 11:13:05.140000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[311]: elif(table == 19): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[312]: print >> log, "Table 19. All Spectra and XSpectra Enabled , 64 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[314]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=1, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[315]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[316]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[317]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[318]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[319]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[320]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[321]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[32]: log("Configuring the switch matrix") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[34]: scr.dfb_set_matrix(s, signal=['EF1'], others='gnd') ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[53]: channel_map = {'EF1': {'sig': [211], ../../GSEOS_scripts/DFB\dfb_set_matrix.py[89]: all_channels = channel_map.keys() ../../GSEOS_scripts/DFB\dfb_set_matrix.py[95]: if(others in channel_map['EF1'].keys()): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[96]: sig_gnd_open = signal + gnd + open ../../GSEOS_scripts/DFB\dfb_set_matrix.py[98]: others_list = [] ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[111]: matrix.reset(200) # open everything ../../GSEOS_scripts/DFB\dfb_set_matrix.py[112]: matrix.reset(300) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[115]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[116]: for item in gnd: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[119]: for item in open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[36]: log("configuring signal generator") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[37]: idn = my_ds345.get_idn() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[38]: log(idn) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[39]: my_ds345.set_func('sine') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[40]: my_ds345.set_ampl(2.5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[41]: my_ds345.set_mod_enable(False) # Disable the burst ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[42]: my_ds345.set_mod_type(0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[43]: my_ds345.write('MDWF 2') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[44]: my_ds345.write('RATE 0.001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[45]: my_ds345.write('STFR 0.000001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[46]: my_ds345.write('SPFR 8192') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[47]: my_ds345.set_mod_enable(True) # Enable the burst Trace collected at: 2010-06-01 11:14:09.109000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[311]: elif(table == 19): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[329]: elif(table == 20): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[330]: print >> log, "Table 20. All Spectra and XSpectra Enabled , 36 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[332]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=0, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[333]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[334]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[335]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[336]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[337]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[338]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[339]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[32]: log("Configuring the switch matrix") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[34]: scr.dfb_set_matrix(s, signal=['EF1'], others='gnd') ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[53]: channel_map = {'EF1': {'sig': [211], ../../GSEOS_scripts/DFB\dfb_set_matrix.py[89]: all_channels = channel_map.keys() ../../GSEOS_scripts/DFB\dfb_set_matrix.py[95]: if(others in channel_map['EF1'].keys()): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[96]: sig_gnd_open = signal + gnd + open ../../GSEOS_scripts/DFB\dfb_set_matrix.py[98]: others_list = [] ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[111]: matrix.reset(200) # open everything ../../GSEOS_scripts/DFB\dfb_set_matrix.py[112]: matrix.reset(300) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[115]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[116]: for item in gnd: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[119]: for item in open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[36]: log("configuring signal generator") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[37]: idn = my_ds345.get_idn() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[38]: log(idn) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[39]: my_ds345.set_func('sine') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[40]: my_ds345.set_ampl(2.5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[41]: my_ds345.set_mod_enable(False) # Disable the burst ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[42]: my_ds345.set_mod_type(0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[43]: my_ds345.write('MDWF 2') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[44]: my_ds345.write('RATE 0.001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[45]: my_ds345.write('STFR 0.000001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[46]: my_ds345.write('SPFR 8192') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[47]: my_ds345.set_mod_enable(True) # Enable the burst Trace collected at: 2010-06-01 11:15:45.375000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[294]: print >> log, "Table 18. All Spectra and XSpectra Enabled, 112 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[296]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=2, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[297]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[298]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[299]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[300]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[301]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[302]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[303]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[305]: cmd.EFW_DFB_XSPEC1(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1, XSPEC_NAVG=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[32]: log("Configuring the switch matrix") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[34]: scr.dfb_set_matrix(s, signal=['EF1'], others='gnd') ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[53]: channel_map = {'EF1': {'sig': [211], ../../GSEOS_scripts/DFB\dfb_set_matrix.py[89]: all_channels = channel_map.keys() ../../GSEOS_scripts/DFB\dfb_set_matrix.py[95]: if(others in channel_map['EF1'].keys()): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[96]: sig_gnd_open = signal + gnd + open ../../GSEOS_scripts/DFB\dfb_set_matrix.py[98]: others_list = [] ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[111]: matrix.reset(200) # open everything ../../GSEOS_scripts/DFB\dfb_set_matrix.py[112]: matrix.reset(300) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[115]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[116]: for item in gnd: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[119]: for item in open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[36]: log("configuring signal generator") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[37]: idn = my_ds345.get_idn() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[38]: log(idn) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[39]: my_ds345.set_func('sine') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[40]: my_ds345.set_ampl(2.5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[41]: my_ds345.set_mod_enable(False) # Disable the burst ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[42]: my_ds345.set_mod_type(0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[43]: my_ds345.write('MDWF 2') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[44]: my_ds345.write('RATE 0.001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[45]: my_ds345.write('STFR 0.000001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[46]: my_ds345.write('SPFR 8192') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[47]: my_ds345.set_mod_enable(True) # Enable the burst Trace collected at: 2010-06-01 11:16:49.375000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[294]: print >> log, "Table 18. All Spectra and XSpectra Enabled, 112 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[296]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=2, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[297]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[298]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[299]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[300]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[301]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[302]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[303]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[305]: cmd.EFW_DFB_XSPEC1(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1, XSPEC_NAVG=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[306]: cmd.EFW_DFB_XSPEC2(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[32]: log("Configuring the switch matrix") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[34]: scr.dfb_set_matrix(s, signal=['EF1'], others='gnd') ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[53]: channel_map = {'EF1': {'sig': [211], ../../GSEOS_scripts/DFB\dfb_set_matrix.py[89]: all_channels = channel_map.keys() ../../GSEOS_scripts/DFB\dfb_set_matrix.py[95]: if(others in channel_map['EF1'].keys()): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[96]: sig_gnd_open = signal + gnd + open ../../GSEOS_scripts/DFB\dfb_set_matrix.py[98]: others_list = [] ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[111]: matrix.reset(200) # open everything ../../GSEOS_scripts/DFB\dfb_set_matrix.py[112]: matrix.reset(300) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[115]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[116]: for item in gnd: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[119]: for item in open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[36]: log("configuring signal generator") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[37]: idn = my_ds345.get_idn() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[38]: log(idn) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[39]: my_ds345.set_func('sine') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[40]: my_ds345.set_ampl(2.5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[41]: my_ds345.set_mod_enable(False) # Disable the burst ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[42]: my_ds345.set_mod_type(0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[43]: my_ds345.write('MDWF 2') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[44]: my_ds345.write('RATE 0.001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[45]: my_ds345.write('STFR 0.000001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[46]: my_ds345.write('SPFR 8192') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[47]: my_ds345.set_mod_enable(True) # Enable the burst Trace collected at: 2010-06-01 11:18:09.406000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[294]: print >> log, "Table 18. All Spectra and XSpectra Enabled, 112 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[296]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=2, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[297]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[298]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[299]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[300]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[301]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[302]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[303]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[305]: cmd.EFW_DFB_XSPEC1(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1, XSPEC_NAVG=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[306]: cmd.EFW_DFB_XSPEC2(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[307]: cmd.EFW_DFB_XSPEC3(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[32]: log("Configuring the switch matrix") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[34]: scr.dfb_set_matrix(s, signal=['EF1'], others='gnd') ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[53]: channel_map = {'EF1': {'sig': [211], ../../GSEOS_scripts/DFB\dfb_set_matrix.py[89]: all_channels = channel_map.keys() ../../GSEOS_scripts/DFB\dfb_set_matrix.py[95]: if(others in channel_map['EF1'].keys()): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[96]: sig_gnd_open = signal + gnd + open ../../GSEOS_scripts/DFB\dfb_set_matrix.py[98]: others_list = [] ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[111]: matrix.reset(200) # open everything ../../GSEOS_scripts/DFB\dfb_set_matrix.py[112]: matrix.reset(300) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[115]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[116]: for item in gnd: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[119]: for item in open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[36]: log("configuring signal generator") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[37]: idn = my_ds345.get_idn() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[38]: log(idn) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[39]: my_ds345.set_func('sine') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[40]: my_ds345.set_ampl(2.5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[41]: my_ds345.set_mod_enable(False) # Disable the burst ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[42]: my_ds345.set_mod_type(0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[43]: my_ds345.write('MDWF 2') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[44]: my_ds345.write('RATE 0.001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[45]: my_ds345.write('STFR 0.000001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[46]: my_ds345.write('SPFR 8192') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[47]: my_ds345.set_mod_enable(True) # Enable the burst Trace collected at: 2010-06-01 11:21:54.390000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[294]: print >> log, "Table 18. All Spectra and XSpectra Enabled, 112 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[296]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=2, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[297]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[298]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[299]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[300]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[301]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[302]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[303]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[305]: cmd.EFW_DFB_XSPEC1(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1, XSPEC_NAVG=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[306]: cmd.EFW_DFB_XSPEC2(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[307]: cmd.EFW_DFB_XSPEC3(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[32]: log("Configuring the switch matrix") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[34]: scr.dfb_set_matrix(s, signal=['EF1'], others='gnd') ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[53]: channel_map = {'EF1': {'sig': [211], ../../GSEOS_scripts/DFB\dfb_set_matrix.py[89]: all_channels = channel_map.keys() ../../GSEOS_scripts/DFB\dfb_set_matrix.py[95]: if(others in channel_map['EF1'].keys()): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[96]: sig_gnd_open = signal + gnd + open ../../GSEOS_scripts/DFB\dfb_set_matrix.py[98]: others_list = [] ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[111]: matrix.reset(200) # open everything ../../GSEOS_scripts/DFB\dfb_set_matrix.py[112]: matrix.reset(300) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[115]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[116]: for item in gnd: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[119]: for item in open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[36]: log("configuring signal generator") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[37]: idn = my_ds345.get_idn() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[38]: log(idn) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[39]: my_ds345.set_func('sine') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[40]: my_ds345.set_ampl(2.5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[41]: my_ds345.set_mod_enable(False) # Disable the burst ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[42]: my_ds345.set_mod_type(0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[43]: my_ds345.write('MDWF 2') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[44]: my_ds345.write('RATE 0.001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[45]: my_ds345.write('STFR 0.000001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[46]: my_ds345.write('SPFR 8192') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[47]: my_ds345.set_mod_enable(True) # Enable the burst Trace collected at: 2010-06-01 11:22:58.390000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[294]: print >> log, "Table 18. All Spectra and XSpectra Enabled, 112 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[296]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=2, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[297]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[298]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[299]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[300]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[301]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[302]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[303]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[305]: cmd.EFW_DFB_XSPEC1(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1, XSPEC_NAVG=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[306]: cmd.EFW_DFB_XSPEC2(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[307]: cmd.EFW_DFB_XSPEC3(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[308]: cmd.EFW_DFB_XSPEC4(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[32]: log("Configuring the switch matrix") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[34]: scr.dfb_set_matrix(s, signal=['EF1'], others='gnd') ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[53]: channel_map = {'EF1': {'sig': [211], ../../GSEOS_scripts/DFB\dfb_set_matrix.py[89]: all_channels = channel_map.keys() ../../GSEOS_scripts/DFB\dfb_set_matrix.py[95]: if(others in channel_map['EF1'].keys()): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[96]: sig_gnd_open = signal + gnd + open ../../GSEOS_scripts/DFB\dfb_set_matrix.py[98]: others_list = [] ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[111]: matrix.reset(200) # open everything ../../GSEOS_scripts/DFB\dfb_set_matrix.py[112]: matrix.reset(300) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[115]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[116]: for item in gnd: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[119]: for item in open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[36]: log("configuring signal generator") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[37]: idn = my_ds345.get_idn() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[38]: log(idn) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[39]: my_ds345.set_func('sine') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[40]: my_ds345.set_ampl(2.5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[41]: my_ds345.set_mod_enable(False) # Disable the burst ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[42]: my_ds345.set_mod_type(0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[43]: my_ds345.write('MDWF 2') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[44]: my_ds345.write('RATE 0.001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[45]: my_ds345.write('STFR 0.000001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[46]: my_ds345.write('SPFR 8192') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[47]: my_ds345.set_mod_enable(True) # Enable the burst Trace collected at: 2010-06-01 11:25:46.218000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[294]: print >> log, "Table 18. All Spectra and XSpectra Enabled, 112 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[296]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=2, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[297]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[298]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[299]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[300]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[301]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[302]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[303]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[305]: cmd.EFW_DFB_XSPEC1(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1, XSPEC_NAVG=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[306]: cmd.EFW_DFB_XSPEC2(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[307]: cmd.EFW_DFB_XSPEC3(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[32]: log("Configuring the switch matrix") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[34]: scr.dfb_set_matrix(s, signal=['EF1'], others='gnd') ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[53]: channel_map = {'EF1': {'sig': [211], ../../GSEOS_scripts/DFB\dfb_set_matrix.py[89]: all_channels = channel_map.keys() ../../GSEOS_scripts/DFB\dfb_set_matrix.py[95]: if(others in channel_map['EF1'].keys()): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[96]: sig_gnd_open = signal + gnd + open ../../GSEOS_scripts/DFB\dfb_set_matrix.py[98]: others_list = [] ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[111]: matrix.reset(200) # open everything ../../GSEOS_scripts/DFB\dfb_set_matrix.py[112]: matrix.reset(300) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[115]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[116]: for item in gnd: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[119]: for item in open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[36]: log("configuring signal generator") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[37]: idn = my_ds345.get_idn() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[38]: log(idn) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[39]: my_ds345.set_func('sine') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[40]: my_ds345.set_ampl(2.5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[41]: my_ds345.set_mod_enable(False) # Disable the burst ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[42]: my_ds345.set_mod_type(0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[43]: my_ds345.write('MDWF 2') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[44]: my_ds345.write('RATE 0.001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[45]: my_ds345.write('STFR 0.000001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[46]: my_ds345.write('SPFR 8192') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[47]: my_ds345.set_mod_enable(True) # Enable the burst Trace collected at: 2010-06-01 11:27:22.187000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[294]: print >> log, "Table 18. All Spectra and XSpectra Enabled, 112 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[296]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=2, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[297]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[298]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[299]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[300]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[301]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[302]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[303]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[305]: cmd.EFW_DFB_XSPEC1(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1, XSPEC_NAVG=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[306]: cmd.EFW_DFB_XSPEC2(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[307]: cmd.EFW_DFB_XSPEC3(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[32]: log("Configuring the switch matrix") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[34]: scr.dfb_set_matrix(s, signal=['EF1'], others='gnd') ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[53]: channel_map = {'EF1': {'sig': [211], ../../GSEOS_scripts/DFB\dfb_set_matrix.py[89]: all_channels = channel_map.keys() ../../GSEOS_scripts/DFB\dfb_set_matrix.py[95]: if(others in channel_map['EF1'].keys()): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[96]: sig_gnd_open = signal + gnd + open ../../GSEOS_scripts/DFB\dfb_set_matrix.py[98]: others_list = [] ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[111]: matrix.reset(200) # open everything ../../GSEOS_scripts/DFB\dfb_set_matrix.py[112]: matrix.reset(300) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[115]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[116]: for item in gnd: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[119]: for item in open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[36]: log("configuring signal generator") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[37]: idn = my_ds345.get_idn() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[38]: log(idn) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[39]: my_ds345.set_func('sine') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[40]: my_ds345.set_ampl(2.5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[41]: my_ds345.set_mod_enable(False) # Disable the burst ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[42]: my_ds345.set_mod_type(0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[43]: my_ds345.write('MDWF 2') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[44]: my_ds345.write('RATE 0.001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[45]: my_ds345.write('STFR 0.000001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[46]: my_ds345.write('SPFR 8192') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[47]: my_ds345.set_mod_enable(True) # Enable the burst Trace collected at: 2010-06-01 11:27:56.734000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[294]: print >> log, "Table 18. All Spectra and XSpectra Enabled, 112 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[296]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=2, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[297]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[298]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[299]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[300]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[301]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[302]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[303]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[305]: cmd.EFW_DFB_XSPEC1(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1, XSPEC_NAVG=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[306]: cmd.EFW_DFB_XSPEC2(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[307]: cmd.EFW_DFB_XSPEC3(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[308]: cmd.EFW_DFB_XSPEC4(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[309]: cmd.EFW_DFBCONFIG(APID=0xf) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) Script killed by user. Trace collected at: 2010-06-01 11:28:57.906000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[294]: print >> log, "Table 18. All Spectra and XSpectra Enabled, 112 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[296]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=2, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[297]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[298]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[299]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[300]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[301]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[302]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[303]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[305]: cmd.EFW_DFB_XSPEC1(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1, XSPEC_NAVG=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[306]: cmd.EFW_DFB_XSPEC2(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[307]: cmd.EFW_DFB_XSPEC3(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) Script killed by user. Trace collected at: 2010-06-01 11:29:46.156000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[294]: print >> log, "Table 18. All Spectra and XSpectra Enabled, 112 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[296]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=2, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[297]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[298]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[299]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[300]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[301]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[302]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[303]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[305]: cmd.EFW_DFB_XSPEC1(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=1, XSPEC_NAVG=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) Script killed by user. Trace collected at: 2010-06-01 11:30:39.328000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[294]: print >> log, "Table 18. All Spectra and XSpectra Enabled, 112 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[296]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=2, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[297]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[298]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[299]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[300]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[301]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[302]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[303]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) Script killed by user. Trace collected at: 2010-06-01 11:31:54.328000 ---------------------------------------------------------------------- ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[16]: gpib_addr = 12 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[17]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[18]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[19]: my_ds345 = ds345.ds345(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[22]: gpib_addr = 9 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[23]: ip = '192.168.0.4' ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[24]: tcp_port = 1234 ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[25]: s = sw_matrix.sw_matrix(gpib_addr, ip, tcp_port) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[27]: log("----------------------------------------", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[28]: log("Running Spectra Test Table 3 DFB ETU1 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[31]: scr.dfb_pd_play(test='st1', table=table, DFB='ETU1') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[23]: """ ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[25]: from efw import * ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[27]: import util ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[28]: import GseosError ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[30]: def burst_collect(table=None, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[171]: def usage(): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[184]: def get_block_by_apid(apid): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[192]: def wait_for_packets(apid, num_packets, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[211]: def spectra_test(apid, discard_packets=4, num_packets=4, timeout=60): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[230]: def main(test=None, table=None, num_packets=4, discard_packets=4, timeout=60, DFB=None): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[231]: if(not test): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[234]: elif(test=='wt1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[238]: elif(test=='wt2'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[242]: elif(test=='wt3'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[246]: elif(test=='st1'): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[247]: if(not table): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[250]: log("'st1' - Spectra Test #1, using table %d" % table) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[251]: scr.dfb_pd_cfg(table=table, DFB=DFB) # 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[43]: print >> log, "Using DFB model %s" % str(DFB) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[45]: if(DFB == "ETU1"): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[46]: print >> log, "Disabling Burst 2." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[47]: cmd.EFW_DFB_E_B2(E_B2_ENA=0, E_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[48]: cmd.EFW_DFB_V_B2(V_B2_ENA=0, V_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[49]: cmd.EFW_DFB_SCM_B2(SCM_B2_ENA=0, SCM_B2_SPD=0x0E) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[50]: cmd.EFW_DFBCONFIG(APID=0xa) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[51]: cmd.EFW_DFBCONFIG(APID=0xb) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[52]: cmd.EFW_DFBCONFIG(APID=9) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[60]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=0, E_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[61]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=0, V_SVY_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[62]: cmd.EFW_DFB_FB(FB_FREQBANDS=0, FB_ENA2=0, FB_ENA1=0, FB_SPD=0, FB_SEL1=0, FB_SEL2=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[63]: cmd.EFW_DFBCONFIG(APID=1) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[64]: cmd.EFW_DFBCONFIG(APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[65]: cmd.EFW_DFBCONFIG(APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[67]: cmd.efw_ssr_route(SEGMENT=0, APID=3) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[68]: cmd.efw_ssr_route(SEGMENT=0, APID=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[69]: cmd.efw_ssr_route(SEGMENT=0, APID=5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[71]: if(table == 1): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[92]: elif(table == 2): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[106]: elif(table == 3): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[127]: elif(table == 4): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[145]: elif(table == 5): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[157]: elif(table == 6): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[173]: elif(table == 7): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[191]: elif(table == 8): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[203]: elif(table == 9): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[219]: elif(table == 10): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[237]: elif(table == 11): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[249]: elif(table == 12): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[257]: elif(table == 13): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[265]: elif(table == 14): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[271]: elif(table == 15): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[279]: elif(table == 16): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[287]: elif(table == 17): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[293]: elif(table == 18): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[294]: print >> log, "Table 18. All Spectra and XSpectra Enabled, 112 bins." ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[296]: cmd.EFW_DFB_SPEC1(SPEC_NAVG=4, SPEC_NCAD=4, SPEC_BIN=2, SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[297]: cmd.EFW_DFB_SPEC2(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[298]: cmd.EFW_DFB_SPEC3(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[299]: cmd.EFW_DFB_SPEC4(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[300]: cmd.EFW_DFB_SPEC5(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[301]: cmd.EFW_DFB_SPEC6(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[302]: cmd.EFW_DFB_SPEC7(SPEC_ENA=1, SPEC_SRC=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[303]: cmd.EFW_DFBCONFIG(APID=0xe) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[305]: cmd.EFW_DFB_XSPEC1(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=0, XSPEC_NAVG=4) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[306]: cmd.EFW_DFB_XSPEC2(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[307]: cmd.EFW_DFB_XSPEC3(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[308]: cmd.EFW_DFB_XSPEC4(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[309]: cmd.EFW_DFBCONFIG(APID=0xf) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_cfg.py[352]: print >> log, "Done setting up DFB for table %d" % table ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[252]: cmd.EFW_DFBCONFIG(0x0e) # Notify DCB of DFB configuration change ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[253]: spectra_test(apid=0x24e, num_packets=num_packets, discard_packets=discard_packets, timeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[219]: 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[220]: if(wait_for_packets(apid, discard_packets, timeout)): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[223]: 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[226]: log("Collecting %d more 0x%03x packets." % (num_packets, apid)) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[227]: wait_for_packets(apid, num_packets, timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[199]: block = get_block_by_apid(apid) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[188]: apid_str = ('APID_%03x' % apid).upper() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[190]: return GseosBlocks.Blocks[apid_str] ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[201]: try: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[202]: wait(block, lambda: True, flTimeout=timeout) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[208]: log("Got packet %d" % i) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[200]: for i in range(num_packets): ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_pd_play.py[209]: return None ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[32]: log("Configuring the switch matrix") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[34]: scr.dfb_set_matrix(s, signal=['EF1'], others='gnd') ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[46]: """ ../../GSEOS_scripts/DFB\dfb_set_matrix.py[48]: def main(matrix, signal=[], gnd=[], open=[], others=None): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[53]: channel_map = {'EF1': {'sig': [211], ../../GSEOS_scripts/DFB\dfb_set_matrix.py[89]: all_channels = channel_map.keys() ../../GSEOS_scripts/DFB\dfb_set_matrix.py[95]: if(others in channel_map['EF1'].keys()): ../../GSEOS_scripts/DFB\dfb_set_matrix.py[96]: sig_gnd_open = signal + gnd + open ../../GSEOS_scripts/DFB\dfb_set_matrix.py[98]: others_list = [] ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[100]: if item not in sig_gnd_open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[101]: others_list.append(item) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[99]: for item in all_channels: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[111]: matrix.reset(200) # open everything ../../GSEOS_scripts/DFB\dfb_set_matrix.py[112]: matrix.reset(300) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[115]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[114]: for chan in channel_map[item]['sig']: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[113]: for item in signal: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[116]: for item in gnd: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[119]: for item in open: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[124]: if(others == 'gnd' or ../../GSEOS_scripts/DFB\dfb_set_matrix.py[126]: matrix.close(chan) ../../GSEOS_scripts/DFB\dfb_set_matrix.py[123]: for chan in channel_map[item][others]: ../../GSEOS_scripts/DFB\dfb_set_matrix.py[122]: for item in others_list: ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[36]: log("configuring signal generator") ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[37]: idn = my_ds345.get_idn() ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[38]: log(idn) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[39]: my_ds345.set_func('sine') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[40]: my_ds345.set_ampl(2.5) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[41]: my_ds345.set_mod_enable(False) # Disable the burst ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[42]: my_ds345.set_mod_type(0) ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[43]: my_ds345.write('MDWF 2') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[44]: my_ds345.write('RATE 0.001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[45]: my_ds345.write('STFR 0.000001') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[46]: my_ds345.write('SPFR 8192') ../../GSEOS_scripts/DFB/DFB_PlayDate_2010.01\dfb_etu1_spectratest.py[47]: my_ds345.set_mod_enable(True) # Enable the burst