Trace collected at: 2012-09-05 07:45:02.897000 ---------------------------------------------------------------------- ../GSEOS_scripts/General\dc_functional.py[89]: log('========================================', color=BLUE, attr=BOLD ) ../GSEOS_scripts/General\dc_functional.py[90]: log('DC Functional Script Running', color=BLUE, attr=BOLD ) ../GSEOS_scripts/General\dc_functional.py[91]: log('========================================', color=BLUE, attr=BOLD ) ../GSEOS_scripts/General\dc_functional.py[94]: scr.dfb_std_config(table=1) ../GSEOS_scripts/DFB\dfb_std_config.py[20]: """ ../GSEOS_scripts/DFB\dfb_std_config.py[22]: from efw import * ../GSEOS_scripts/DFB\dfb_std_config.py[23]: import util ../GSEOS_scripts/DFB\dfb_std_config.py[25]: def usage(): ../GSEOS_scripts/DFB\dfb_std_config.py[29]: def main(table=None): ../GSEOS_scripts/DFB\dfb_std_config.py[20]: """ ../GSEOS_scripts/DFB\dfb_std_config.py[22]: from efw import * ../GSEOS_scripts/DFB\dfb_std_config.py[23]: import util ../GSEOS_scripts/DFB\dfb_std_config.py[25]: def usage(): ../GSEOS_scripts/DFB\dfb_std_config.py[29]: def main(table=None): ../GSEOS_scripts/DFB\dfb_std_config.py[30]: if(table == None): ../GSEOS_scripts/DFB\dfb_std_config.py[33]: print >> log, "Setting up DFB for table %d" % table ../GSEOS_scripts/DFB\dfb_std_config.py[35]: if(table == 0): ../GSEOS_scripts/DFB\dfb_std_config.py[85]: elif(table==99): ../GSEOS_scripts/DFB\dfb_std_config.py[102]: elif(table == 1): ../GSEOS_scripts/DFB\dfb_std_config.py[103]: print >> log, "Configure DFB for standard mode" ../GSEOS_scripts/DFB\dfb_std_config.py[104]: print >> log, "Burst 2" ../GSEOS_scripts/DFB\dfb_std_config.py[105]: print >> log, "VAC and MSC @ 16kS/s, EDC Disabled in SSR Route" ../GSEOS_scripts/DFB\dfb_std_config.py[106]: cmd.EFW_DFB_E_B2(E_B2_SPD=0x5, E_B2_ENA=0x7) ../GSEOS_scripts/DFB\dfb_std_config.py[107]: cmd.EFW_DFB_V_B2(V_B2_SPD=0xE, V_B2_ENA=0x3F) ../GSEOS_scripts/DFB\dfb_std_config.py[108]: cmd.EFW_DFB_SCM_B2(SCM_B2_SPD=0xE, SCM_B2_ENA=0x7) ../GSEOS_scripts/DFB\dfb_std_config.py[110]: print >> log, "Burst 1" ../GSEOS_scripts/DFB\dfb_std_config.py[111]: print >> log, "VDC, EDC and MSC @ 512S/s" ../GSEOS_scripts/DFB\dfb_std_config.py[112]: cmd.EFW_DFB_E_B1(E_B1_SPD=0x9, E_B1_ENA=0x7) ../GSEOS_scripts/DFB\dfb_std_config.py[113]: cmd.EFW_DFB_V_B1(V_B1_SPD=0x9, V_B1_ENA=0x3F) ../GSEOS_scripts/DFB\dfb_std_config.py[114]: cmd.EFW_DFB_SCM_B1(SCM_B1_SPD=0x9, SCM_B1_ENA=0x7) ../GSEOS_scripts/DFB\dfb_std_config.py[116]: print >> log, "Survey" ../GSEOS_scripts/DFB\dfb_std_config.py[117]: print >> log, "VDC at 16S/s, EDC, Int Waveforms @ 32S/s, MAG @ 64S/s" ../GSEOS_scripts/DFB\dfb_std_config.py[118]: cmd.EFW_DFB_E_SVY_ENA(E_SVY_SPD=5, E_SVY_ENA=0x7) ../GSEOS_scripts/DFB\dfb_std_config.py[119]: cmd.EFW_DFB_V_SVY(V_SVY_SPD=4, V_SVY_ENA=0x3F) ../GSEOS_scripts/DFB\dfb_std_config.py[120]: cmd.EFW_DFB_MAG(MAG_SVY_SPD=6, MAG_SVY_ENA=0x7) ../GSEOS_scripts/DFB\dfb_std_config.py[121]: cmd.EFW_DFB_SVY_INT(SVY_INT_SPD=5, SVY_INT_ENA=0xFFF) ../GSEOS_scripts/DFB\dfb_std_config.py[123]: print >> log, "Filter Banks AKA Triggers" ../GSEOS_scripts/DFB\dfb_std_config.py[124]: print >> log, "E12DC, SCMU at 8S/s 7 Bins" ../GSEOS_scripts/DFB\dfb_std_config.py[125]: cmd.EFW_DFB_FB(FB_SEL1=0, FB_SEL2=6, FB_ENA1=1, FB_ENA2=1, FB_FREQBANDS=0, FB_SPD=7) ../GSEOS_scripts/DFB\dfb_std_config.py[127]: print >> log, "Internal Triggers" ../GSEOS_scripts/DFB\dfb_std_config.py[128]: print >> log, "E12DC, SCMU at 32S/s 13 Bins" ../GSEOS_scripts/DFB\dfb_std_config.py[129]: cmd.EFW_DFB_FB_INT(FB_SEL3=0, FB_SEL4=6, FB_ENA3=1, FB_ENA4=1, FB_FREQBANDS=1, FB_SPD=9) ../GSEOS_scripts/DFB\dfb_std_config.py[131]: print >> log, "Spectra" ../GSEOS_scripts/DFB\dfb_std_config.py[132]: print >> log, "All 7 Spectra Enabled: E12AC, E56AC, SCMU, SCMV, SCMW, V1AC, V2AC" ../GSEOS_scripts/DFB\dfb_std_config.py[133]: cmd.EFW_DFB_SPEC1(SPEC_SRC=3, SPEC_NCAD=5, SPEC_NAVG=3, SPEC_BIN=1, SPEC_ENA=1) ../GSEOS_scripts/DFB\dfb_std_config.py[134]: cmd.EFW_DFB_SPEC2(SPEC_SRC=5, SPEC_ENA=1) ../GSEOS_scripts/DFB\dfb_std_config.py[135]: cmd.EFW_DFB_SPEC3(SPEC_SRC=0x10, SPEC_ENA=1) ../GSEOS_scripts/DFB\dfb_std_config.py[136]: cmd.EFW_DFB_SPEC4(SPEC_SRC=0x11, SPEC_ENA=1) ../GSEOS_scripts/DFB\dfb_std_config.py[137]: cmd.EFW_DFB_SPEC5(SPEC_SRC=0x12, SPEC_ENA=1) ../GSEOS_scripts/DFB\dfb_std_config.py[138]: cmd.EFW_DFB_SPEC6(SPEC_SRC=0xA, SPEC_ENA=1) ../GSEOS_scripts/DFB\dfb_std_config.py[139]: cmd.EFW_DFB_SPEC7(SPEC_SRC=0xB, SPEC_ENA=1) ../GSEOS_scripts/DFB\dfb_std_config.py[140]: print >> log, "Cross Spectra" ../GSEOS_scripts/DFB\dfb_std_config.py[141]: print >> log, "Two Cross Spectra Enabled: SCMW x E12AC, V1AC x V2AC" ../GSEOS_scripts/DFB\dfb_std_config.py[142]: cmd.EFW_DFB_XSPEC1(XSPEC_SRC1=4, XSPEC_SRC2=0, XSPEC_NAVG=3, XSPEC_ENA=1) ../GSEOS_scripts/DFB\dfb_std_config.py[143]: cmd.EFW_DFB_XSPEC2(XSPEC_SRC1=5, XSPEC_SRC2=6, XSPEC_ENA=1) ../GSEOS_scripts/DFB\dfb_std_config.py[144]: cmd.EFW_DFB_XSPEC3(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=0) ../GSEOS_scripts/DFB\dfb_std_config.py[145]: cmd.EFW_DFB_XSPEC4(XSPEC_SRC1=0, XSPEC_SRC2=0, XSPEC_ENA=0) ../GSEOS_scripts/DFB\dfb_std_config.py[147]: print >> log, "Route Packets as per standard configuration" ../GSEOS_scripts/DFB\dfb_std_config.py[148]: cmd.EFW_SSR_ROUTE(APID=1, SEGMENT=1) ../GSEOS_scripts/DFB\dfb_std_config.py[149]: cmd.EFW_SSR_ROUTE(APID=3, SEGMENT=1) ../GSEOS_scripts/DFB\dfb_std_config.py[150]: cmd.EFW_SSR_ROUTE(APID=4, SEGMENT=1) ../GSEOS_scripts/DFB\dfb_std_config.py[151]: cmd.EFW_SSR_ROUTE(APID=5, SEGMENT=0) ../GSEOS_scripts/DFB\dfb_std_config.py[152]: cmd.EFW_SSR_ROUTE(APID=6, SEGMENT=2) ../GSEOS_scripts/DFB\dfb_std_config.py[153]: cmd.EFW_SSR_ROUTE(APID=7, SEGMENT=2) ../GSEOS_scripts/DFB\dfb_std_config.py[154]: cmd.EFW_SSR_ROUTE(APID=8, SEGMENT=2) ../GSEOS_scripts/DFB\dfb_std_config.py[155]: cmd.EFW_SSR_ROUTE(APID=9, SEGMENT=0) ../GSEOS_scripts/DFB\dfb_std_config.py[156]: cmd.EFW_SSR_ROUTE(APID=0xA, SEGMENT=3) ../GSEOS_scripts/DFB\dfb_std_config.py[157]: cmd.EFW_SSR_ROUTE(APID=0xB, SEGMENT=3) ../GSEOS_scripts/DFB\dfb_std_config.py[158]: cmd.EFW_SSR_ROUTE(APID=0xE, SEGMENT=1) ../GSEOS_scripts/DFB\dfb_std_config.py[159]: cmd.EFW_SSR_ROUTE(APID=0xF, SEGMENT=1) ../GSEOS_scripts/DFB\dfb_std_config.py[161]: sleep(5) ../GSEOS_scripts/DFB\dfb_std_config.py[162]: util.DFBCONFIG_ALL() ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts\util.py[223]: cmd.EFW_DFBCONFIG(APID=num) ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts\util.py[223]: cmd.EFW_DFBCONFIG(APID=num) ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts\util.py[223]: cmd.EFW_DFBCONFIG(APID=num) ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts\util.py[223]: cmd.EFW_DFBCONFIG(APID=num) ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts\util.py[223]: cmd.EFW_DFBCONFIG(APID=num) ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts\util.py[223]: cmd.EFW_DFBCONFIG(APID=num) ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts\util.py[223]: cmd.EFW_DFBCONFIG(APID=num) ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts\util.py[223]: cmd.EFW_DFBCONFIG(APID=num) ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts\util.py[223]: cmd.EFW_DFBCONFIG(APID=num) ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts\util.py[223]: cmd.EFW_DFBCONFIG(APID=num) ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts\util.py[223]: cmd.EFW_DFBCONFIG(APID=num) ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts\util.py[223]: cmd.EFW_DFBCONFIG(APID=num) ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts\util.py[223]: cmd.EFW_DFBCONFIG(APID=num) ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts\util.py[223]: cmd.EFW_DFBCONFIG(APID=num) ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts\util.py[223]: cmd.EFW_DFBCONFIG(APID=num) ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts\util.py[223]: cmd.EFW_DFBCONFIG(APID=num) ../GSEOS_scripts\util.py[222]: for num in range(16): ../GSEOS_scripts/DFB\dfb_std_config.py[654]: print >> log, "Done setting up DFB for table %d" % table ../GSEOS_scripts/General\dc_functional.py[95]: print >> log, "Sleeping 32 seconds" ../GSEOS_scripts/General\dc_functional.py[96]: sleep(32) ../GSEOS_scripts/General\dc_functional.py[99]: set_check('all', 0x7fff, delay=10) ../GSEOS_scripts/General\dc_functional.py[47]: print >> log, "Setting %s to 0x%04x" % (channels, value) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[50]: cmd.EFW_LDAC(READBACK=1) ../GSEOS_scripts/General\dc_functional.py[64]: print >> log, "Waiting for readback." ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[66]: actual_values = get_bias_values() ../GSEOS_scripts/General\dc_functional.py[28]: retval = [] ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[32]: return retval ../GSEOS_scripts/General\dc_functional.py[69]: target_value = val_map[value] # Figure out the expected nA from the setpoint ../GSEOS_scripts/General\dc_functional.py[70]: min_value = target_value - tolerance ../GSEOS_scripts/General\dc_functional.py[71]: max_value = target_value + tolerance ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[102]: values = val_map.keys() ../GSEOS_scripts/General\dc_functional.py[103]: values.sort() ../GSEOS_scripts/General\dc_functional.py[104]: for value in values: ../GSEOS_scripts/General\dc_functional.py[105]: set_check('odds', value, delay=32) ../GSEOS_scripts/General\dc_functional.py[47]: print >> log, "Setting %s to 0x%04x" % (channels, value) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[50]: cmd.EFW_LDAC(READBACK=1) ../GSEOS_scripts/General\dc_functional.py[64]: print >> log, "Waiting for readback." ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[66]: actual_values = get_bias_values() ../GSEOS_scripts/General\dc_functional.py[28]: retval = [] ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[32]: return retval ../GSEOS_scripts/General\dc_functional.py[69]: target_value = val_map[value] # Figure out the expected nA from the setpoint ../GSEOS_scripts/General\dc_functional.py[70]: min_value = target_value - tolerance ../GSEOS_scripts/General\dc_functional.py[71]: max_value = target_value + tolerance ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[104]: for value in values: ../GSEOS_scripts/General\dc_functional.py[105]: set_check('odds', value, delay=32) ../GSEOS_scripts/General\dc_functional.py[47]: print >> log, "Setting %s to 0x%04x" % (channels, value) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[50]: cmd.EFW_LDAC(READBACK=1) ../GSEOS_scripts/General\dc_functional.py[64]: print >> log, "Waiting for readback." ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[66]: actual_values = get_bias_values() ../GSEOS_scripts/General\dc_functional.py[28]: retval = [] ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[32]: return retval ../GSEOS_scripts/General\dc_functional.py[69]: target_value = val_map[value] # Figure out the expected nA from the setpoint ../GSEOS_scripts/General\dc_functional.py[70]: min_value = target_value - tolerance ../GSEOS_scripts/General\dc_functional.py[71]: max_value = target_value + tolerance ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[104]: for value in values: ../GSEOS_scripts/General\dc_functional.py[105]: set_check('odds', value, delay=32) ../GSEOS_scripts/General\dc_functional.py[47]: print >> log, "Setting %s to 0x%04x" % (channels, value) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[50]: cmd.EFW_LDAC(READBACK=1) ../GSEOS_scripts/General\dc_functional.py[64]: print >> log, "Waiting for readback." ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[66]: actual_values = get_bias_values() ../GSEOS_scripts/General\dc_functional.py[28]: retval = [] ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[32]: return retval ../GSEOS_scripts/General\dc_functional.py[69]: target_value = val_map[value] # Figure out the expected nA from the setpoint ../GSEOS_scripts/General\dc_functional.py[70]: min_value = target_value - tolerance ../GSEOS_scripts/General\dc_functional.py[71]: max_value = target_value + tolerance ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[104]: for value in values: ../GSEOS_scripts/General\dc_functional.py[105]: set_check('odds', value, delay=32) ../GSEOS_scripts/General\dc_functional.py[47]: print >> log, "Setting %s to 0x%04x" % (channels, value) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[50]: cmd.EFW_LDAC(READBACK=1) ../GSEOS_scripts/General\dc_functional.py[64]: print >> log, "Waiting for readback." ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[66]: actual_values = get_bias_values() ../GSEOS_scripts/General\dc_functional.py[28]: retval = [] ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[32]: return retval ../GSEOS_scripts/General\dc_functional.py[69]: target_value = val_map[value] # Figure out the expected nA from the setpoint ../GSEOS_scripts/General\dc_functional.py[70]: min_value = target_value - tolerance ../GSEOS_scripts/General\dc_functional.py[71]: max_value = target_value + tolerance ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[104]: for value in values: ../GSEOS_scripts/General\dc_functional.py[105]: set_check('odds', value, delay=32) ../GSEOS_scripts/General\dc_functional.py[47]: print >> log, "Setting %s to 0x%04x" % (channels, value) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[50]: cmd.EFW_LDAC(READBACK=1) ../GSEOS_scripts/General\dc_functional.py[64]: print >> log, "Waiting for readback." ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[66]: actual_values = get_bias_values() ../GSEOS_scripts/General\dc_functional.py[28]: retval = [] ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[32]: return retval ../GSEOS_scripts/General\dc_functional.py[69]: target_value = val_map[value] # Figure out the expected nA from the setpoint ../GSEOS_scripts/General\dc_functional.py[70]: min_value = target_value - tolerance ../GSEOS_scripts/General\dc_functional.py[71]: max_value = target_value + tolerance ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[104]: for value in values: ../GSEOS_scripts/General\dc_functional.py[108]: set_check('all', 0x7fff, delay=10) ../GSEOS_scripts/General\dc_functional.py[47]: print >> log, "Setting %s to 0x%04x" % (channels, value) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[50]: cmd.EFW_LDAC(READBACK=1) ../GSEOS_scripts/General\dc_functional.py[64]: print >> log, "Waiting for readback." ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[66]: actual_values = get_bias_values() ../GSEOS_scripts/General\dc_functional.py[28]: retval = [] ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[32]: return retval ../GSEOS_scripts/General\dc_functional.py[69]: target_value = val_map[value] # Figure out the expected nA from the setpoint ../GSEOS_scripts/General\dc_functional.py[70]: min_value = target_value - tolerance ../GSEOS_scripts/General\dc_functional.py[71]: max_value = target_value + tolerance ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[111]: values = val_map.keys() ../GSEOS_scripts/General\dc_functional.py[112]: values.sort() ../GSEOS_scripts/General\dc_functional.py[113]: for value in values: ../GSEOS_scripts/General\dc_functional.py[114]: set_check('evens', value, delay=32) ../GSEOS_scripts/General\dc_functional.py[47]: print >> log, "Setting %s to 0x%04x" % (channels, value) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[50]: cmd.EFW_LDAC(READBACK=1) ../GSEOS_scripts/General\dc_functional.py[64]: print >> log, "Waiting for readback." ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[66]: actual_values = get_bias_values() ../GSEOS_scripts/General\dc_functional.py[28]: retval = [] ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[32]: return retval ../GSEOS_scripts/General\dc_functional.py[69]: target_value = val_map[value] # Figure out the expected nA from the setpoint ../GSEOS_scripts/General\dc_functional.py[70]: min_value = target_value - tolerance ../GSEOS_scripts/General\dc_functional.py[71]: max_value = target_value + tolerance ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[113]: for value in values: ../GSEOS_scripts/General\dc_functional.py[114]: set_check('evens', value, delay=32) ../GSEOS_scripts/General\dc_functional.py[47]: print >> log, "Setting %s to 0x%04x" % (channels, value) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[50]: cmd.EFW_LDAC(READBACK=1) ../GSEOS_scripts/General\dc_functional.py[64]: print >> log, "Waiting for readback." ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[66]: actual_values = get_bias_values() ../GSEOS_scripts/General\dc_functional.py[28]: retval = [] ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[32]: return retval ../GSEOS_scripts/General\dc_functional.py[69]: target_value = val_map[value] # Figure out the expected nA from the setpoint ../GSEOS_scripts/General\dc_functional.py[70]: min_value = target_value - tolerance ../GSEOS_scripts/General\dc_functional.py[71]: max_value = target_value + tolerance ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[113]: for value in values: ../GSEOS_scripts/General\dc_functional.py[114]: set_check('evens', value, delay=32) ../GSEOS_scripts/General\dc_functional.py[47]: print >> log, "Setting %s to 0x%04x" % (channels, value) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[50]: cmd.EFW_LDAC(READBACK=1) ../GSEOS_scripts/General\dc_functional.py[64]: print >> log, "Waiting for readback." ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[66]: actual_values = get_bias_values() ../GSEOS_scripts/General\dc_functional.py[28]: retval = [] ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[32]: return retval ../GSEOS_scripts/General\dc_functional.py[69]: target_value = val_map[value] # Figure out the expected nA from the setpoint ../GSEOS_scripts/General\dc_functional.py[70]: min_value = target_value - tolerance ../GSEOS_scripts/General\dc_functional.py[71]: max_value = target_value + tolerance ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[113]: for value in values: ../GSEOS_scripts/General\dc_functional.py[114]: set_check('evens', value, delay=32) ../GSEOS_scripts/General\dc_functional.py[47]: print >> log, "Setting %s to 0x%04x" % (channels, value) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[50]: cmd.EFW_LDAC(READBACK=1) ../GSEOS_scripts/General\dc_functional.py[64]: print >> log, "Waiting for readback." ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[66]: actual_values = get_bias_values() ../GSEOS_scripts/General\dc_functional.py[28]: retval = [] ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[32]: return retval ../GSEOS_scripts/General\dc_functional.py[69]: target_value = val_map[value] # Figure out the expected nA from the setpoint ../GSEOS_scripts/General\dc_functional.py[70]: min_value = target_value - tolerance ../GSEOS_scripts/General\dc_functional.py[71]: max_value = target_value + tolerance ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[113]: for value in values: ../GSEOS_scripts/General\dc_functional.py[114]: set_check('evens', value, delay=32) ../GSEOS_scripts/General\dc_functional.py[47]: print >> log, "Setting %s to 0x%04x" % (channels, value) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[50]: cmd.EFW_LDAC(READBACK=1) ../GSEOS_scripts/General\dc_functional.py[64]: print >> log, "Waiting for readback." ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[66]: actual_values = get_bias_values() ../GSEOS_scripts/General\dc_functional.py[28]: retval = [] ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[32]: return retval ../GSEOS_scripts/General\dc_functional.py[69]: target_value = val_map[value] # Figure out the expected nA from the setpoint ../GSEOS_scripts/General\dc_functional.py[70]: min_value = target_value - tolerance ../GSEOS_scripts/General\dc_functional.py[71]: max_value = target_value + tolerance ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[113]: for value in values: ../GSEOS_scripts/General\dc_functional.py[117]: set_check('all', 0x7fff, delay=10) ../GSEOS_scripts/General\dc_functional.py[47]: print >> log, "Setting %s to 0x%04x" % (channels, value) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[49]: util.SET_BIAS(channel, value) ../GSEOS_scripts\util.py[26]: cmd.EFW_BIAS( ch, val>>8 ) ../GSEOS_scripts\util.py[27]: cmd.EFW_BIASL( val & 0xff ) ../GSEOS_scripts/General\dc_functional.py[48]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[50]: cmd.EFW_LDAC(READBACK=1) ../GSEOS_scripts/General\dc_functional.py[64]: print >> log, "Waiting for readback." ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[65]: wait(APID_265, lambda: True, flTimeout=300) ../GSEOS_scripts/General\dc_functional.py[66]: actual_values = get_bias_values() ../GSEOS_scripts/General\dc_functional.py[28]: retval = [] ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[30]: value = EU('APID_265.IEFI_IBIAS%d' % i) ../GSEOS_scripts/General\dc_functional.py[31]: retval.append(value) ../GSEOS_scripts/General\dc_functional.py[29]: for i in range(1,7): ../GSEOS_scripts/General\dc_functional.py[32]: return retval ../GSEOS_scripts/General\dc_functional.py[69]: target_value = val_map[value] # Figure out the expected nA from the setpoint ../GSEOS_scripts/General\dc_functional.py[70]: min_value = target_value - tolerance ../GSEOS_scripts/General\dc_functional.py[71]: max_value = target_value + tolerance ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[73]: actual_value = actual_values[channel-1] ../GSEOS_scripts/General\dc_functional.py[74]: if(min_value < actual_value < max_value): ../GSEOS_scripts/General\dc_functional.py[75]: print >> log, "OK: %.2f < BIAS%d(%.2f) < %.2f" % (min_value, ../GSEOS_scripts/General\dc_functional.py[72]: for channel in chan_map[channels]: ../GSEOS_scripts/General\dc_functional.py[119]: log('DC Functional Complete', color=BLUE, attr=BOLD ) ../GSEOS_scripts/General\dc_functional.py[120]: log('================END=====================', color=BLUE, attr=BOLD )