A question about "proc init()"

Moderator: wwlytton

Post Reply
elaine_gao
Posts: 3
Joined: Thu Oct 11, 2018 11:36 am

A question about "proc init()"

Post by elaine_gao »

Hello, I am a NEURON novice, just contacted this software soon, so I hope to get everyone's help.
I want to create a neural network and plan to use the following code
begintemplate cell
public soma, dend
create soma, dend[1]
proc init() {
ndend = 2
create soma, dend[ndend]
soma {
nseg = 1
diam = 18.8
L = 18.8
Ra = 123.0
insert hh
gnabar_hh=0.25
gl_hh = .0001666
el_hh = -60.0
}
dend[0] {
nseg = 5
diam = 3.18
L = 701.9
Ra = 123
insert pas
g_pas = .0001666
e_pas = -60.0
}
dend[1] {
nseg = 5
diam = 2.0
L = 549.1
Ra = 123
insert pas
g_pas = .0001666
e_pas = -60.0
}
connect dend[0](0), soma(0)
connect dend[1](0), soma(1)
}
endtemplate cell

However, when I type "proc init ()", the system displays “c:\nrn\bin\nrniv.exe: Segmentation violation”
I don't know why this happens.
I hope you can help me.
Thank you very much!
ted
Site Admin
Posts: 6358
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: A question about "proc init()"

Post by ted »

when I type "proc init ()", the system displays “c:\nrn\bin\nrniv.exe: Segmentation violation”
You mean you entered
proc init()
at NEURON's
oc>
prompt?

Suggestion: use the Forum's formatting options to make your posts more readable. For example, to preserve indentation of source code, select the entire block of code that you entered, then click on the "Code display" button (looks like
< / >
).
Post Reply