I am currently in the process of tuning a LIF neuron according to the characteristics of a particular F-I curve. I use Netcon to record from soma. I am getting a strange bug which says the following.
bad stack access: expecting(double);really(unknown)
nrniv: interpreter stack type error
...... near line
nc = cell. connect2target(nil)
connect2target is defined inside the cell template. I create an object of the template in an separate hoc and call this connect2target(nil), where i get this error.
Code: Select all
load_file("nrngui.hoc")
load_file("BC1_template.hoc")
objref cell,BCsfile
cell = new BC1(1)
access cell.soma
objref stim[2], nce,nil
stim = new NetStim()
stim.start = 1
stim.number = 0
nce = new NetCon(stim, cell.ampa.object(0))
nce.delay = 0
nce.weight = .006
objref nil
nc = cell.connect2target(nil)