Question about proc batchrun()
Posted: Thu Feb 23, 2012 2:02 pm
I'm working along with a cell model taken from Muller et al.,2009. I'm trying to execute multiple simulations varying the syn.onset parameter using the batch run procedure according with http://www.neuron.yale.edu/phpbb/viewto ... =28&t=2333. The problem is that when I run the simulation with the command go(), the model just runs once and the syn.onset parameter does not vary. I'd like to execute it 5 times with syn.onset increments of 10 ms each, could you tell me if I'm making mistakes please?
This is what I have:
Thanks in advance
This is what I have:
Code: Select all
///////////////////////////
//* simulation control *//
///////////////////////////
dt = 0.025
tstop = 50
v_init = -65
proc batchrun() { local i, tmp
tmp = syn.onset
for i=0,$0-5 {
syn.onset = tmp*i
run()
}
}
proc initialize() {
finitialize(v_init)
fcurrent()
}
proc integrate() {
g.begin()
while (t<tstop) {
fadvance()
g.plot(t)
}
g.flush()
}
proc go() {
initialize()
integrate()
}