How to use a netstim to deliver several events
Posted: Wed Nov 04, 2009 10:58 am
Hi all,
I would like to use a netstim object to deliver two (or more) train of inputs.
For example I would like to deliver a tstim at t=1 and t=5
this will solve and be ok for the first
how can I give the second input?
I need to create another NetStim? I can't reuse that one?
Note that I'm interested to track the weight on the NetCon so I would like to use the same one and to not create another of them.
Any hint?
I would like to use a netstim object to deliver two (or more) train of inputs.
For example I would like to deliver a tstim at t=1 and t=5
Code: Select all
netStim = h.NetStim()
netStim.number = 10
netStim.start = 1
netStim.interval = 0.1
netStim.noise = 0
# NetCon obj
netCon = h.NetCon(netStim, alphaSyn)
netCon.weight[0] = 1
how can I give the second input?
I need to create another NetStim? I can't reuse that one?
Note that I'm interested to track the weight on the NetCon so I would like to use the same one and to not create another of them.
Any hint?