-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.hoc
39 lines (30 loc) · 847 Bytes
/
init.hoc
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
load_file("nrngui.hoc")
load_file("configReader1.hoc")
load_file("map.hoc")
load_file("lib.hoc")
load_file("vcCell.hoc")
load_file("grph.hoc")
strdef suffix
objref conf, cell, g
g = new grph()
conf = new configReader1("kvconfig.in")
cell = new vcCell()
cell.setconf(conf)
suffix = "Kv3"
cell.initConfig(suffix, conf.L.s, conf.diam.s, conf.Ra.s, conf.revName.s, conf.revValue.s, conf.g_pas.s, conf.v_init.s, conf.ctype.s)
tstop = 700
cell.runActivationProtocol()
g.plotmatrix(cell.tvec, cell.vcData, 3)
tstop = 1750
cell.runInactivationProtocol()
g.plotmatrix(cell.tvec, cell.vcData, 3)
tstop = 700
cell.runDeactivationProtocol()
g.plotmatrix(cell.tvec, cell.vcData, 3)
tstop = 2900
cell.runRampProtocol()
g.plotmatrix(cell.tvec, cell.vcData, 3)
tstop = 1800
cell.runAPWaveformProtocol()
g.plotmatrix(cell.tvec, cell.vcData, 3)
//quit()