forked from D3TaLES/hardpotato
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
44 lines (34 loc) · 978 Bytes
/
test.py
File metadata and controls
44 lines (34 loc) · 978 Bytes
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
import hardpotato as hp
pot = 3
if pot == 1:
model = 'chi1205b'
path = 'C:/Users/oliverrz/Desktop/CHI/chi1205b_mini2/chi1205b.exe'
sens = 1e-4
elif pot == 2:
model = 'chi760e'
path = 'C:/Users/oliverrz/Desktop/CHI/chi760e/chi760e.exe'
sens = 1e-7
elif pot == 3:
model = 'emstatpico'
path = ''
sens=1e-7
folder = 'data'
#print(potentiostat.models_available)
info = hp.potentiostat.Info(model)
info.specifications()
hp.potentiostat.Setup(model, path, folder)
fileName = model + '_CV'
cv = hp.potentiostat.CV(sens=sens, fileName=fileName, qt=2, resistance=10)
cv.bipot()
cv.run()
fileName = model + '_LSV'
lsv = hp.potentiostat.LSV(sens=sens, fileName=fileName, qt=2, resistance=10)
lsv.bipot()
lsv.run()
fileName = model + '_CA'
ca = hp.potentiostat.CA(sens=sens, fileName=fileName, qt=2, resistance=10)
ca.bipot()
ca.run()
fileName = model + '_OCP'
ocp = hp.potentiostat.OCP(fileName=fileName, qt=2, resistance=10)
ocp.run()