Search found 7 matches

by bee
Sat Dec 03, 2011 5:44 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Sinusoidal extracellular stimulation
Replies: 11
Views: 7277

Re: Sinusoidal extracellular stimulation

The reason why I got a syntax error for the following lines: node fsin = new Fsin(.5) setpointer fsin.x, Iext is because I declared objref fsin inside of a proc My program compiles and runs now without any error messages but when I plot the transmembrane voltage nothing happens. Right now I am just ...
by bee
Fri Dec 02, 2011 9:55 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Sinusoidal extracellular stimulation
Replies: 11
Views: 7277

Re: Sinusoidal extracellular stimulation

Instead of using all the given files for extracellular stimulation I am trying to write my own code because I think that is the only way I will really understand it, so instead of inserting an extracellular mechanism I am going to try to insert the equivalent current intracellularly. I am still goin...
by bee
Sun Nov 27, 2011 9:14 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Sinusoidal extracellular stimulation
Replies: 11
Views: 7277

Re: Sinusoidal extracellular stimulation

Hello again, I got busy and was not able to work on this for a while but I am giving it another try. I used a setpointer statement to link Fsin's x variable to xtra's is variable like you suggested objref fsin soma fsin = new Fsin(0.5) setpointer fsin.x, is_xtra I was able to compile, however when I...
by bee
Mon Oct 24, 2011 6:18 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Sinusoidal extracellular stimulation
Replies: 11
Views: 7277

Re: Sinusoidal extracellular stimulation

When I comment out

e_extracellular(i) = v(i)

it works just fine. But then I am not setting the extracellular potential to the value I calculated. Am I using e_extracellular the wrong way?
by bee
Mon Oct 24, 2011 5:05 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Sinusoidal extracellular stimulation
Replies: 11
Views: 7277

Re: Sinusoidal extracellular stimulation

Hello Ted, Thank you so much for replying. The word "node" is ambiguous in this context. Must distinguish between "node of Ranvier" (if your axon is myelinated) and "node as a discrete point in space at which NEURON computes the local potential." Which did you have in m...
by bee
Mon Oct 24, 2011 10:06 am
Forum: Adding new mechanisms and functions to NEURON
Topic: Sinusoidal extracellular stimulation
Replies: 11
Views: 7277

Re: Sinusoidal extracellular stimulation

I now understand that vext[n] is not the external voltage at each node. Also, I believe that I have to write an extra mod file for my sinusoidal stimulation and add it as a point process? I found a file called fsin.mod that does this but I am not sure how to deal with the pointer x. I would define t...
by bee
Sun Oct 23, 2011 10:44 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Sinusoidal extracellular stimulation
Replies: 11
Views: 7277

Sinusoidal extracellular stimulation

Hello everyone, I built a model using Neuron and would like to use an extracellular electrode and apply a sinusoidal stimulating current. I read the extracellular mechanism and it seams like I would want to set vext[n] = rho*Iext(t)/(4*pi*(X^2 + (L*(n-11))^2)^(.5)) where rho is the external resistiv...