-
Notifications
You must be signed in to change notification settings - Fork 1
/
SetConductances2.hoc
59 lines (40 loc) · 1.21 KB
/
SetConductances2.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
56
57
58
59
//Baseline values simplified; std made 60% of baseline mean
forall {if(ismembrane("Gfluctdv")){g_e0_Gfluctdv=1e-5 std_e_Gfluctdv=6e-6}}
forall {if(ismembrane("Gfluctdv")){g_i0_Gfluctdv=1e-5 std_i_Gfluctdv=6e-6}}
forall {if(ismembrane("Gfluctdv")){tau_e_Gfluctdv=0.5 tau_i_Gfluctdv=2}}
xopen("twobirampsdel.hoc")
TR=20000
SLOPE1=0.001
SLOPE2=1e-7
RSTRT1=0
RSTRT2=0
HOLD=1000
// invoke the following procedures as needed from the interpreter window
proc grampon() {
mycmd1.play(&multex_Gfluctdv,dt)
mycmd2.play(&multin_Gfluctdv,dt)
print "mixed noisy synaptic input is now driven by vector mycmd"
}
// to "disconnect" the ramp from the fluctuating conductance
proc grampoff() {
// restore mult to 0
mycmd1.play_remove()
mycmd2.play_remove()
multex_Gfluctdv=0
multin_Gfluctdv=0
print "synaptic conductance has been released from mycmd"
}
simple2del()
//code to set up spike counter
objref apc,spiketimes,spikeout
apc=new APCount(0.5)
spiketimes=new Vector()
spikeout=new File()
strdef filename
//to save spike times, type following in Terminal window
// apc.record(spiketimes)
// sprint(filename,"FRramp.txt")
// spikeout.wopen(filename)
// spiketimes.printf(spikeout,"%8.4f\n")
// spikeout.close()
//