Code: Select all
// run the single script
// use the PointProcessManager to select IClamp
// set dur of IClamp[0] to 100
// open a new Voltage Graph
objref r
r = new Random()
r.poisson(.01)
r.play(&IClamp[0].amp)
//open a RunControl
// press Init&Run several times
Second: I changed the previous code using r.normal(0,0.01) instead, and it works fine. Then, I tried to make it as a density mechanism in order to forget about the size of the compartment where it is inserted. I did a .mod file simply consisting on
Code: Select all
NEURON {
SUFFIX curr
RANGE amp, i, gain}
PARAMETER {
amp = 0
gain = 1e-5 (mA/cm2)}
ASSIGNED { i (mA/cm2) }
BREAKPOINT {i = amp * gain}
Code: Select all
r = new Random()
r.normal(0,0.01)
r.play(&_curr(0.5))
Regards.