Below is the code for the single cell model (partially Pseudocode)
Code: Select all
proc givenstim (){ ////this procedure defines the stimulate from Netstim
m=$1
start=$2
stim = new NetStim()
stim.start = start
stim.number = 10e20
stim.interval = 20
stim.noise=1
cell.soma syn = new Exp2Syn(0.9) //or any user-defined synapse file
synlist.append(syn)
nc = new NetCon(stim,syn,0,0,1)
nclist.append(nc)
}
proc batchrun() { ///this procedure defines how to run the simulation for each sub-run
synlist=new List()
nclist=new List()
objref stim
print i
if ($1==0) {
givenstim(22,100) ///only first sub-run build synapse and deliver Netstim events
}
run()
}
run_time=2 ///how many time to run the simulation
for i=0,run_time-1 {
batchrun(i)
}
I first want to know whether this is the right solution. Also, I remember I saw some posts that, once if the synlist and nclist are emptied, synapses should not be functioning, but it seems this is not the case in my example, want to know why?
Thanks in advance.