Пример #1
0
# Measurement Configuration
VIN_0 = 7.2
VIN_N = 17.1
VIN_STEP = 0.5
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 (%)')
Пример #2
0
from myinstruments import GPD, BK8600, DM3058

# Measurement Configuration
DUT = "CISIL-LED"

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()
Пример #3
0
VOUT_0 = 10
VOUT_N = 16
VOUT_STEP = 0.25
VIN = 17
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)')
Пример #4
0
##    }

ILOAD_START = 0.1
#ILOAD_END = 2
ILOAD_END = float(VIN) * IIN_MAX / VOUT

NUM_OF_PTS = 21

#ILOAD_END = IOUT_MAX[VIN]
#NUM_OF_PTS = (ILOAD_END-ILOAD_START-0.5)*10+1

print "Testing: VIN={}V, VOUT={}V, ILOAD={}A-{}A, NUM_OF_PTS={}".format(
    VIN, VOUT, ILOAD_START, ILOAD_END, NUM_OF_PTS)

# Start testing...
power = GPD()
#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
Пример #5
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')