#C_DAC, Output_Power = alc_fsw(Path,TARGET_POWER,SA) time.sleep(1) EVM = GetEVM() time.sleep(1) print('EVM= ', EVM) print('C_DAC= ', C_DAC) print('Q_DAC12= ', Q_DAC_12) print('Q_DAC3= ', Q_DAC_3) print('Output Power= ', Output_Power) save_data(C_DAC, Output_Power, EVM, Folders) fpStr = str(IF_FREQ / 1e9) + "," + str(Path) + "," + str( tempQor.tempSen(Qorvo_temp_degC)) + "," + str( tempMac.tempSen(M1_temp_degC) ) + "," + str(FREQ / 1e9) + "," + str(EVM) + "," + str( Output_Power) + "," + str(IF_INPUT) + "," + str( Qorvo_I) + "," + str(CHA3398_I) + "," + str( Q_DAC_12) + "," + str(Q_DAC_3) + "," + str( C_DAC) + "," + str(t) + "," + "\n" fp.write(fpStr) tempQ = tempQor.tempSen(Qorvo_temp_degC) tempM = tempMac.tempSen(M1_temp_degC) if minEVM > EVM: minEVM = EVM minOutput_Power = Output_Power minQorvo_I = Qorvo_I minCHA3398_I = CHA3398_I minQ_DAC_12 = Q_DAC_12
#C_DAC, Output_Power = alc_fsw(Path,TARGET_POWER,SA) time.sleep(1) EVM = GetEVM() time.sleep(1) print('EVM= ',EVM) print('C_DAC= ',C_DAC) print('Q_DAC12= ',Q_DAC_12) print('Q_DAC3= ',Q_DAC_3) print('Output Power= ',Output_Power) save_data(C_DAC,Output_Power, EVM,Folders) fpStr = str(IF_FREQ/1e9) + "," + str(Path) + "," + str(tempQor.tempSen(Qorvo_temp_degC)) + "," + str(tempMac.tempSen(M1_temp_degC)) + "," + str(FREQ/1e9) + "," + str(EVM) + "," + str(Output_Power) + "," + str(IF_INPUT) + "," + str(Qorvo_I) + "," + str(CHA3398_I) + "," + str(Q_DAC_12) + "," + str(Q_DAC_3) + "," + str(C_DAC) + "," + str(t) + "," + "\n" fp.write(fpStr) tempQ = tempQor.tempSen(Qorvo_temp_degC) tempM = tempMac.tempSen(M1_temp_degC) if Path == 2 and minEVM > EVM: minEVM = EVM Ch0_EVM = minEVM Ch0_Output_Power = Output_Power Ch0_Qorvo_I = Qorvo_I Ch0_CHA3398_I = CHA3398_I Ch0_Q_DAC_12 = Q_DAC_12 Ch0_Q_DAC_3 = Q_DAC_3 Ch0_C_DAC = C_DAC Ch0_tempQ = tempQ Ch0_tempM = tempM
CHA3398_I = device_I.current("CHA3398_ID_3") else: print("Good Luck!") #subprocess.run('python3 ./Tx_set_EVT2.py off', shell=True) print ('IF_Input = %0.1f dBm\n' % (IF_INPUT)) print ('Chain_Num', Chain_Num) #print ('Power Detected Voltage = %0.2fmV\n' % (PWR_DET)) print('IF_Freq. = %0.2fGHz\n' % (IF_FREQ)) OUTPUT_POWER = markerY print ('Output_Power = %0.2fdBm\n' % (OUTPUT_POWER)) print('Ch. Freq. = %0.2fGHz, Gain = %0.2fdB\n' % (markerX/1e9, Gain)) fpStr = str(IF_FREQ) + "," + str(Chain_Num) + "," + str(round(float(tempQor.tempSen(Qorvo_temp_degC)), 1)) + "," + str(round(float(tempMac.tempSen(M1_temp_degC)), 1)) + "," + str(IF_INPUT) + "," + str(RF_FREQ) + "," + str(round(float(Gain),1)) + "," + str(round(float(OUTPUT_POWER),1))+ "," + str(round(PWR_DET, 2)) + "," + str(round(float(C_DAC), 1)) + "," + str(round(float(Qorvo_I), 1)) + "," + str(round(float(CHA3398_I), 1)) + "," + str(t) + "," + "\n" fp.write(fpStr) print ("Power_det", PWR_DET) #sleep(3) if RF_FREQ == '37.1': OUTPUT_POWER_37p1 = OUTPUT_POWER PWR_DET_37p1 = PWR_DET GAIN_37p1 = Gain elif RF_FREQ == '37.3': OUTPUT_POWER_37p3 = OUTPUT_POWER PWR_DET_37p3 = PWR_DET