Search found 47 matches

by pfortier
Fri Feb 01, 2019 1:04 pm
Forum: Hot tips
Topic: Driving a synapse with recorded or precomputed spike events
Replies: 7
Views: 9572

Re: Driving a synapse with recorded or precomputed spike events

After the helpful instruction to use a NetCon to deliver the VecStim spikes, I could not find a manual for VecStim. Using trial and error, I finally got it right. It turns out that in my previous post where I asked help for the following code snippet: objref vs vs = new VecStim() objref presyntermin...
by pfortier
Fri Feb 01, 2019 11:18 am
Forum: Hot tips
Topic: Driving a synapse with recorded or precomputed spike events
Replies: 7
Views: 9572

Re: Driving a synapse with recorded or precomputed spike events

Suggest you start by setting up a model in which a NetStim sends events to an IntFire1. Once you have that working, replace the IntFire1 with an ExpSyn attached to a single compartment soma. Here is a fully functioning example of your suggestion: // create postsynaptic neuron create postsynneuron f...
by pfortier
Thu Jan 31, 2019 11:10 am
Forum: Hot tips
Topic: Driving a synapse with recorded or precomputed spike events
Replies: 7
Views: 9572

Re: Driving a synapse with recorded or precomputed spike events

Thanks for pointing me in the right direction but it looks like I need more help. I inserted the following in the code of my original post but it fails: // play presynspiketimes on receptor objref vs vs = new VecStim() objref presynterminal postsynneuron presynterminal = new NetCon(&vs.play(presynsp...
by pfortier
Wed Jan 30, 2019 7:20 pm
Forum: Hot tips
Topic: Driving a synapse with recorded or precomputed spike events
Replies: 7
Views: 9572

Re: Driving a synapse with recorded or precomputed spike events

I read the information and ran the simulation but I don't see how a vector of spike times can be delivered to a postsynaptic receptor. Given: // vector with presynaptic spike times in ms objref presynspiketimes presynspiketimes = new Vector() presynspiketimes.append(50,100,150) // postsynaptic neuro...
by pfortier
Wed Dec 05, 2018 12:46 pm
Forum: Other questions
Topic: replace object in list
Replies: 1
Views: 675

replace object in list

For: objref alist alist=new List() alist.append(new Vector()) alist.o(0) = new Vector() // Does not work !!! My real task is to make several conversions of the vector using several obfunc created 1. put vector in alist 2. alist.o(0) = returnvectorconversion1(alist.o(0)) 3. alist.o(0) = returnvectorc...
by pfortier
Tue Oct 10, 2017 6:35 pm
Forum: Other questions
Topic: record conductance of soma
Replies: 1
Views: 7500

record conductance of soma

I can record the voltage of the soma, soma.v(0.5), but can I record the conductance, soma.g(0.5), to view how the conductance changes with all the opening and closing of voltage-gated and ligand-gated membrane channels?

Thanks,
Pierre
by pfortier
Fri May 19, 2017 5:57 pm
Forum: Other questions
Topic: localobj array
Replies: 2
Views: 4390

Re: localobj array

Solved by making "localobj ref" and connecting to a List:
ref = new List()
for i=0,3 ref.append(new Vector())
by pfortier
Fri May 19, 2017 4:01 pm
Forum: Other questions
Topic: localobj array
Replies: 2
Views: 4390

localobj array

How can I create a local object array?
I thought of entering "localobj ref[4]" in a procedure but that didn't work.
Outside a procedure, I can successfully create an object array using "objref ref[4]".

Thanks,
Pierre
by pfortier
Wed Oct 22, 2014 11:59 am
Forum: Other questions
Topic: escape % in printf
Replies: 2
Views: 1277

escape % in printf

The following webpage http://www.mekong.net/tech/printf.htm indicates that the format specifier %% will print one % but in hoc it prints 2 of them. So printf("aaa %%g bbb") will print: aaa %%g bbb If this is a deviation from the standard, could it be fixed? Escaping backslashes works well, so printf...
by pfortier
Thu Apr 25, 2013 4:06 pm
Forum: Anatomically detailed models
Topic: place dot on neuron
Replies: 4
Views: 6695

Re: place dot on neuron

That worked perfectly.
Thanks
by pfortier
Wed Apr 24, 2013 3:15 pm
Forum: Anatomically detailed models
Topic: place dot on neuron
Replies: 4
Views: 6695

Re: place dot on neuron

I played around a bit with the GUI and determined the following which doesn't seem right. I added an IClamp (let's say #5) at the tip of a dendrite section from the hoc console, as you indicated. I accessed "Tools/Point Processes/Managers/Point Manager" but could not see the dot. So I selected "Sele...
by pfortier
Wed Apr 24, 2013 12:02 pm
Forum: Anatomically detailed models
Topic: place dot on neuron
Replies: 4
Views: 6695

place dot on neuron

I can view my anatomically detailed neuron using "Tools/Point Processes/Managers/Point Manager" and then by clicking on a section I see its section name and range. How could I code the addition of a dot at a specific section and range so that I can visibly see where it is in the dendritic tree? How ...
by pfortier
Tue Nov 20, 2012 8:44 am
Forum: Anatomically detailed models
Topic: changing section lengths
Replies: 7
Views: 2812

Re: changing section lengths

Thanks! I looked at those documents many times and used v("range") many times but never noticed examples using the following: oc>soma nseg=3 oc>soma gnabar_hh(.1)=0.01 oc>soma gnabar_hh(.5)=0.05 oc>soma gnabar_hh(.9)=0.09 oc>print gnabar_hh(.9) 0.09 oc>print gnabar_hh(.5) 0.05 oc>print gnabar_hh(.1)...
by pfortier
Mon Nov 19, 2012 7:28 am
Forum: Anatomically detailed models
Topic: changing section lengths
Replies: 7
Views: 2812

Re: changing section lengths

I use "section {insert mechanism}" to add voltage gated channels. I don't see how nseg would allow me, for example, to have the first third of the section with 6 times the density of channels as in the last third of the section. For "dend[25] {insert hh nseg=3}", how would I set different densities ...
by pfortier
Sun Nov 18, 2012 5:10 pm
Forum: Anatomically detailed models
Topic: changing section lengths
Replies: 7
Views: 2812

Re: changing section lengths

I'm wondering what it is in my message that made you think I wanted to change the geometry of the neuron. If the following represents 1 section of length L: ========== Then I would want to "cut" it into 10 sections of length L/10: =|=|=|=|=|=|=|=|=|= (imagine that | is where I "cut" the branch) The ...