I have a morphologically accurate cell which I've imported into neuron and I'd like to study the effects of synaptic noise on the cell. I need 1000 synapses on the cell and since using 1000 pre-synpatic cells as the source is very wasteful, I decided to make the source of the synapse a ARTIFICIAL_CELL. When I try to connect the ARTIFICIAL_CELL with the morphologically accurate cell with NetCon, I get the following error:
[code>]
NetCon pointer not associated with currently accessed section
Use section ... (&var(x)...) intead of ...(§ion.var(x)...)
[/code]
The ARTICIFICAL_CELL is a point process, so it doesn't have a section that is accessible, so is it possible to create the network I mentioned above?
Below is my mod file and a simplified hoc file.
Code: Select all
NEURON {
ARTIFICIAL_CELL pois_presyncell
RANGE m
}
PARAMETER{
freq = 1
}
ASSIGNED {
m
randflag
}
INITIAL {
m = 0
}
NET_RECEIVE (w){
fire()
}
PROCEDURE fire() {
randflag = ceil((1000/freq)*(1/dt)*scop_random())
if (randflag==((1000/freq)*(1/dt))){
m = 1
}
}
Code: Select all
create soma
soma{
insert hh
insert pas
}
objref syn
soma syn = new ExpSyn (0)
objref presyn
presyn = new pois_presyncell()
objref netcon
netcon = new NetCon(&presyn.m, syn, 1, 0, 1)