I might have missed something about netstim / netcon. I am just trying to use netstim to control a series of events, as an input of a diffusion mechanism.
I started with this, but the events do not seem to occur :
Code: Select all
load_file("nrngui.hoc")
objref cvode // is CVODE required to be able to use NetStim ?
cvode = new CVode(1)
cvode_active(0)
//cvode.atol(1e-6)
//cvode.rtol(1e-6)
//cvode.condition_order(2)
create ACHINPUT
objref ach_stim
ACHINPUT ach_stim = new NetStim(0.5)
ach_stim.interval = 10 //ms (mean) time between spikes
ach_stim.number = 10 //(average) number of spikes
ach_stim.start = 10 // ms (most likely) start time of first spike
ach_stim.noise = 0 //---- range 0 to 1. Fractional randomness. 0 deterministic, 1 intervals have negexp distribution.
objref syn
syn = new ExpSyn(0.5)
//syn.tau --- ms decay time constant
//syn.e -- mV reversal potential
//syn.i -- nA synaptic current
objref nc
nc = new NetCon(ach_stim, syn)
//nc.threshold = 0.0
//nc.delay = 0
//nc.weight = 3000
Also, I read the netstim.mod file, but could not find THE variable to plot to check if the events occured, within the netstim object itself: is there a way to track and record the events ?
thanks,