I am trying to use a user-defined vector to hold event times that are then delivered using the play method of the VecStim class. The goal is to set the event times in the vector and then use these times to trigger a synapse. I am having some problems.
Here is the code:
Code: Select all
// synapse
objref syn
soma syn = new ExpSyn1(0.5)
// create vector for spike times
objref svec
svec = new Vector()
proc interval () { local i, x
low = $1
reps = $3
x = low
dx = $2
for i = 1,reps {
svec.append(x)
x = x + dx
}
}
// set delay, interval, reps
interval(50, 10, 10)
// create a vector stim that generates events at times in svec
objref vecstim
vecstim = new VecStim()
vecstim.play(svec)
// attach the VecStim to synapse
objref ncl
ncl = new List()
ncl.append(new NetCon(vecstim, syn))
ncl.delay = 0
ncl.weight = 1
delay not a public member of List
I also get a similar message telling me that weight is not a public member of List. How do I set delay and weight here?
I would appreciate any help I can get. I know that there have been similar posts, but those have been different enough that I have had trouble understanding where I am going wrong.
Thanks.