Page 1 of 1

Adding a synapse

Posted: Mon Dec 28, 2015 11:33 am
by maria.kesa
Hello,

I'm working with this model https://senselab.med.yale.edu/ModelDB/S ... del=150288

I'm a beginner. I'm trying to dissect how the model works and run small pieces of it. So far I have this code:

Code: Select all

load_file("nrngui.hoc")
load_file("LAcells_template.hoc")
load_file("interneuron_template.hoc")

objectvar cell_exc, cell_inh
cell_exc=new Cell_A()
cell_inh = new InterneuronCell() 

cell_exc.dend syn = new pyrD2pyrD_STFD(0.9)
I get a syntax error and I can't figure out why. Could you help me out and tell me what I'm doing wrong?

syntax error
in simulation.hoc near line 9
cell_exc.dend syn = new pyrD2pyrD_STFD(0.9)
^

Re: Adding a synapse

Posted: Mon Dec 28, 2015 11:38 am
by maria.kesa
Oops, got it you have to do

Code: Select all

objref syn 
I found it in the NEURON book.

My question is, how come in this file https://senselab.med.yale.edu/ModelDB/S ... oCells.hoc
there is no objref? Is it because it's a function?

Thanks,

Maria

Re: Adding a synapse

Posted: Mon Dec 28, 2015 12:49 pm
by ted
maria.kesa wrote:how come in this file https://senselab.med.yale.edu/ModelDB/S ... oCells.hoc
there is no objref?
That file contains many statements. Which statement violates your expectations?