-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoupling.hoc
55 lines (41 loc) · 1.06 KB
/
coupling.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
load_file("nrngui.hoc")
load_file("Stick.hoc")
objref cell[2]
cell[0] = new Stick()
cell[1] = new Stick()
objref rnd, rnd2
rnd = new Random()
rnd2 = new Random()
rnd.uniform(0,1000)
rnd2.uniform(2000,4000)
cell[0].insertLNlla3()
//cell[0].insertFukuda()
cell[0].setStim(rnd.repick(),15000)
cell[0].setCurrentRecord()
cell[0].setVoltageRecord()
cell[1].insertLNlla3()
//cell[1].insertFukuda()
cell[1].setStim(rnd.repick(),15000)
cell[1].setCurrentRecord()
cell[1].setVoltageRecord()
objref gabalist, gaba1, gaba2
gabalist = new List()
gaba1 = cell[0].setGABAlla(200)
//gaba1 = cell[0].setgaba(0.7)
gabalist.append(gaba1)
setpointer gaba1.pre, cell[1].soma.v(0.5)
gaba2 = cell[1].setGABAlla(200)
//gaba2 = cell[1].setgaba(0.7)
gabalist.append(gaba2)
setpointer gaba2.pre, cell[0].soma.v(0.5)
cell[0].setGABACurrentRecord()
cell[1].setGABACurrentRecord()
tstop = 4000
dt = 0.01
run()
cell[0].printVoltageRecord(0)
cell[1].printVoltageRecord(1)
cell[0].printCurrentRecord(0)
cell[1].printCurrentRecord(1)
cell[0].printGABACurrentRecord(0)
cell[1].printGABACurrentRecord(1)