IIN = 3.2 FILE="CISIL-DRV-NEW_EFF-vs-VOUT_VIN{}V_IOUT1A.csv".format(VIN) # Start measurement... # RANGE = np.linspace(VOUT_0, VOUT_N, num=(VOUT_N-VOUT_0+VOUT_STEP)/VOUT_STEP) RANGE = [round(f,3) for f in RANGE] print RANGE power = GPD() meter = DM3058() load = BK8600() power.set_volt(1,VIN) power.set_curr(1,IIN) power.set_output(1) time.sleep(1) load.set_func('VOLT') load.set_remsens('ON') load.set_cv(VOUT_0) load.set_input('ON') plt.axis([VOUT_0, VOUT_N, 70, 90]) plt.xlabel('VOUT (V)') plt.ylabel('EFFICIENCY (%)') plt.grid() plt.ion() vin_l=[]
IOUT = 1 FILE = "CISIL-DRV-NEW_EFF-vs-VIN_VOUT{}V_IOUT{}A.csv".format(VOUT, IOUT) # Start measurement... # RANGE = np.linspace(VIN_0, VIN_N, num=(VIN_N - VIN_0 + VIN_STEP) / VIN_STEP) RANGE = [round(f, 3) for f in RANGE] #RANGE = np.array(range(VIN_0, VIN_N+VIN_STEP, VIN_STEP)) print RANGE power = GPD() meter = DM3058() load = BK8600() power.set_volt(1, VIN_0) power.set_curr(1, 3.1) power.set_output(1) time.sleep(1) load.set_func('VOLT') load.set_remsens('ON') load.set_cv(VOUT) load.set_input('ON') plt.axis([VIN_0, VIN_N, 80, 90]) plt.xlabel('VIN (V)') plt.ylabel('EFFICIENCY (%)') plt.grid() plt.ion() vin_l = [] pin_l = []
VIN_N = 6 VIN_STEP = 0.02 FILE = "CISIL-IV.csv" # Start measurement... # RANGE = np.linspace(VIN_0, VIN_N, num=(VIN_N - VIN_0 + VIN_STEP) / VIN_STEP) RANGE = [round(f, 3) for f in RANGE] #RANGE = np.array(range(VIN_0, VIN_N+VIN_STEP, VIN_STEP)) print RANGE power = GPD() meter = DM3058() power.set_volt(1, VIN_0) power.set_curr(1, 1.1) power.set_output(1) time.sleep(1) plt.axis([VIN_0, VIN_N, 0, 1]) plt.xlabel('VOLTAGE (V)') plt.ylabel('CURRENT (A)') plt.grid() plt.ion() vin_l = [] pin_l = [] pout_l = [] eff_l = [] loss_l = []