Пример #1
0
VOUT = 13
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 = []
Пример #2
0
#meter = DM3058()
meter = KS34470()
#meter = BK2831()
load = BK8600()
l1 = np.linspace(0, 0.2, num=6)
l2 = np.linspace(0.2, ILOAD_END * 0.8, num=NUM_OF_PTS)
Iload_scan = l1.tolist()[:-2] + l2.tolist()

#Iload_scan = np.linspace(0,0.5,num=10)
#Iload_scan = np.concatenate((Iload_scan[:-2], np.linspace(0.5, ILOAD_END, num=NUM_OF_PTS)))
#Iload_scan += numpy.linspace(ILOAD_START, ILOAD_END, num=NUM_OF_PTS)

Iload_scan = np.linspace(ILOAD_START, ILOAD_END, num=int(ILOAD_END / 0.1))
print Iload_scan

power.set_volt(1, VIN)
power.set_curr(1, 3.1)
power.set_output(1)

load.set_cc(0.01)
load.set_input('ON')
load.set_remsens('ON')

plt.axis([ILOAD_START, ILOAD_END, 85, 99])
plt.xlabel('IOUT (A)')
plt.ylabel('EFFICIENCY (%)')
plt.grid()
plt.ion()

vin_l = []
pin_l = []
Пример #3
0
VIN = 12
VOUT = 14

FILE = "CISIL-DRV-EVT1d5_IOUT-vs-V_IADJ_VOUT{}V.csv".format(VOUT)

# Start measurement...
#
RANGE = np.linspace(0, 5, num=51)
print RANGE

power = GPD()
meter = DM3058()
load = BK8600()

power.set_volt(1, VIN)
power.set_curr(1, 3.1)

load.set_func('VOLT')
load.set_remsens('ON')
load.set_cv(VOUT)
load.set_input('ON')

plt.xlabel('V_IADJ (V)')
plt.ylabel('I_OUT (A)')
plt.grid()
plt.ion()

with open(FILE, "w") as f:
    f.write("Viadj_V, Vin_V,Vout_V,Iin_A,Iout_A,Pin_W,Pout_W,Eff_%,Loss_W\n")
    for v_iadj in RANGE:
Пример #4
0
import time
import numpy as np
import serial
import usbtmc
from matplotlib import pyplot as plt
from myinstruments import GPD, BK8600, DM3058

power = GPD()
meter = DM3058()
load = BK8600()

power.set_volt(1,12)
power.set_curr(1,3.1)
power.set_output(1)

load.set_func('VOLT')
load.set_remsens('ON')
load.set_cv(13)
load.set_input('ON')