Search found 86 matches

by Bill Connelly
Mon Jun 29, 2009 11:48 pm
Forum: Getting started
Topic: object orientated gap juction
Replies: 9
Views: 4831

Re: object orientated gap juction

Hmm, I am sure I copied you're code correctly, but I am still getting essentially the same error. Here is my code in full ncells = 2 begintemplate cell public soma create soma proc init() { soma { nseg = 1 L = 30 diam = 30 insert hh } } endtemplate cell begintemplate gapjunction public g, setg objre...
by Bill Connelly
Sun Jun 28, 2009 7:13 pm
Forum: Getting started
Topic: object orientated gap juction
Replies: 9
Views: 4831

Re: object orientated gap juction

Thanks Ted. I'm still having trouble accessing the "g" parameter from HOC. This dot notation is correct isn't it? $o1.sec con1 = new Gap(0.5) $o2.sec con2 = new Gap(0.5) con1.g = 0.001 con2.g = 0.001 but when I am refering to a section, I should say $o1.sec.g_Gap ? But nothing seems to wor...
by Bill Connelly
Sun Jun 28, 2009 2:03 am
Forum: Getting started
Topic: object orientated gap juction
Replies: 9
Views: 4831

Re: object orientated gap juction

...and while I'm on OO, say I define a cell template with begintemplate cell public soma, connections objref connections connections = new List() create soma proc init() { soma { nseg = 1 L = 30 diam = 30 insert hh } } endtemplate cell objref c[2] c[0] = new cell() However I get an error when I say ...
by Bill Connelly
Sun Jun 28, 2009 1:18 am
Forum: Getting started
Topic: object orientated gap juction
Replies: 9
Views: 4831

object orientated gap juction

I'm trying to create a class for creating gap junctions, but I can't seem to get neuron to play nice. The idea is that I can connect two cells by a gap junction by stating objref gap[ngaps] gap = new gapjunction(cell1, cell2) then I can access that gap junctions conductance with gap .g, and I could ...
by Bill Connelly
Mon Jun 22, 2009 10:43 pm
Forum: Getting started
Topic: object with objref in mod file
Replies: 1
Views: 2934

Re: object with objref in mod file

I know this post is 3 years old, but in case anyone finds this by searching, try localobj instead of local objref.
by Bill Connelly
Fri Jun 06, 2008 6:42 pm
Forum: Getting started
Topic: When I(inward) = I(outward) dV/dt = 0 right?
Replies: 3
Views: 2348

So a soma with a length of 10, and a diam of 10 has an area of 314?
That means that neuron is modelling it as a cylinder without the ends. For a section where Length = radius doesn't that mean neuron is 50% out when calculating currents given in current/cm^2?
by Bill Connelly
Fri Jun 06, 2008 7:26 am
Forum: Getting started
Topic: When I(inward) = I(outward) dV/dt = 0 right?
Replies: 3
Views: 2348

When I(inward) = I(outward) dV/dt = 0 right?

Hi. I made a simple soma with Cm and HH. I added an AlphaSynapse. Then I summed all the currents and compared this with the soma.v. I was assuming that when the total current was outward, soma.v would be depolarizing. When the total current was inward, soma.v would be hyperpolarizing and when the to...
by Bill Connelly
Sun Jun 01, 2008 7:03 pm
Forum: Getting started
Topic: Plotting dv/dt against t
Replies: 2
Views: 3315

Thanks very much Ted. Just in case this post is found again, and someone can't figure out why i_cap/cm/1000 = dV/dt (as i couldn't for about 5 minutes).

i_cap = mA/cm2
cm*1000 = mF/cm2
mF = mA . s/V
Therefore...
cm*1000 = mA. s/V.cm2

i_cap/cm/1000 = mA/cm2 / mA.s/V.cm2
= mA.V.cm2 / cm2.mA.s
= V/s
by Bill Connelly
Sun Jun 01, 2008 1:33 am
Forum: Getting started
Topic: Plotting dv/dt against t
Replies: 2
Views: 3315

Plotting dv/dt against t

Hi,

I have a feeling I am being unusually stupid here; but I'm trying to figure out a way to plot dv/dt versus t. A way to do this through the GUI would be especially appreciated; but other ways would be great too.

Thanks,
by Bill Connelly
Sat May 24, 2008 7:04 am
Forum: Getting started
Topic: Arrays, Vectors and Doubles?
Replies: 1
Views: 5486

Arrays, Vectors and Doubles?

Hi, I'm working through the HOC exercises from the neuron course, and I'm deeply confused by a couple of things. I do the following: double x[1] x[0]=10 So I'm making an array with one element which is a double, and then setting it's value to 10. I'm fine with that. But if I try: objref y[1] y[0]=10...
by Bill Connelly
Fri May 23, 2008 12:07 am
Forum: Getting started
Topic: Voltage clamping different compartments at different times
Replies: 1
Views: 2050

Voltage clamping different compartments at different times

Hi, Firstly, I apologise if this question is answered elsewhere. If I had a modelled a neuron with two dendrites, how would I use the SEClamp point process to apply a voltage clamp family to a point on one dendrite, and then later essentially turn that voltage clamp off, and apply the same voltage c...