-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPUND_example.py
49 lines (38 loc) · 1.35 KB
/
PUND_example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from SMU_device import SMUDevice
from PUND.PUND_waveform import create_waveform
from PUND.plot_fig import *
instrument_id = 'GPIB0::24::INSTR'
smu = SMUDevice(instrument_id)
smu.connect()
"""
params is a dictionary with key parameters for a PUND sweep.
Vf - first voltage
Vs - second voltage
rise - number of measurements during the rise
hold - number of measurements to be done while maintaining the applied voltage
space - number of measurements between pulses
n_cycles - number of PUND cycles
Time required for a single measurement is approximately 1 ms. It is the limit for this SMU. The only way to control
rise/hold/space time is to change the number of measurements.
"""
params = {
'Vf': -3,
'Vs': 3,
'rise': 20,
'hold': 10,
'space': 10,
'n_cycles': 2,
}
area = 200 ** 2 * 1e-8 # contact area in cm^2
waveform = []
for _ in range(params['n_cycles']):
waveform = waveform + create_waveform(params) # function "create_waveform() creates voltage list for given params"
smu.setup_sense_subsystem(compl=1e-5, rang=1e-5, nplc=0.1)
smu.custom_list_sweep(waveform, delay=0)
smu.enable_output()
smu.measure()
smu.wait()
smu.disable_output()
smu.check_for_errors()
data = smu.get_traces()
plot_fig(data, params, area, save=False) # one can set save=True and call save_data() function