ax.set_ylabel('I (A)') ax.set_ylim([-2.e-9, 2.e-9]) fig.tight_layout() ### connect and initialize ky.connect() ky.initialize() ky.read_config() ######################## ### ZERO VOLT OFFSET ### ######################## ### configure source and trigger model ky.source_measure_config(Vscan=[0.]) ky.trigger_config(Twait=10., Tstep=0., Tmeas=30., Nmeas='INF') ### start trigger model and wait ky.trigger_init() ky.trigger_wait() ### read measurements measurements = ky.read_measurements() ### plot measurements ky.plot_measurements(measurements, 'REL', 'READ', ax, invertX=False, invertY=True)
######################### ### FORWARD BIAS SCAN ### ######################### ### [0., 3.] in 100 mV steps Vmin = 0. Vmax = 3. Vstep = 0.100 Vscan = np.arange(Vmin, Vmax, Vstep) Vscan = np.append(Vscan, Vmax) ### configure source and trigger model ky.send('SOUR:VOLT:RANG 20') ky.source_measure_config(Vscan = Vscan, Ilim = 25.e-3) ky.trigger_config(Twait = 10., Tstep = 0.5, Tmeas = 0., Nmeas = 9) ### start trigger model and wait ky.trigger_init() ky.trigger_wait() ### read measurements measurements = ky.read_measurements() ### plot measurements ky.plot_measurements(measurements, 'SOUR', 'READ', ax, invertX = False, invertY = False); ### write measurements ky.write_measurements(measurements, outfiletagname + '.fwdscan.csv') ### write commands
######################### ### [Vbd - 2, Vbd + 10] in 200 mV steps Vmin = Vbd - 2. Vmax = Vbd + 15. Vstep = 0.200 Vscan = np.arange(Vmin, Vmax, Vstep) Vsmart = [Vbd, Vbd + 5.] ### configure source, measure and trigger model ky.source_measure_config(Vscan=Vscan, Ilim=250.e-6, reverse=True, Vsmart=Vsmart, Naver=Naver) ky.trigger_config(Twait=30., Tstep=0.5, Tmeas=0., Nmeas=25) ### start trigger model and wait ky.trigger_init() ky.trigger_wait() ### read measurements measurements = ky.read_measurements() ### plot measurements ky.plot_measurements(measurements, 'SOUR', 'READ', ax, invertX=True, invertY=True)