Search found 10 matches

by Eelke Spaak
Mon Jan 12, 2009 4:28 am
Forum: Adding new mechanisms and functions to NEURON
Topic: Pre-determined spike train artificial cell
Replies: 7
Views: 6805

Re: Pre-determined spike train artificial cell

Back at the first post vec.play()-ed the SpikeTrain.x variable and had NetCon check it for passing a threshold of 0.5 An alternative that would compress the Vector to just being a list of spike times is to use nrn/examples/nrniv/netcon/vecevent.mod (Edit first and change POINT_PROCESS to ARTIFICIAL...
by Eelke Spaak
Wed Dec 17, 2008 5:42 am
Forum: Parallel NEURON
Topic: "(...) unable to associate a PlayRecord item with a thread"
Replies: 2
Views: 2653

"(...) unable to associate a PlayRecord item with a thread"

I am developing and testing with NEURON 7.0a264 on a dual-core Intel T7300 processor with Windows Vista 32 bit. My model is getting more complex (and the simulations slower) all the time, and multithreaded simulation would obviously be a convenient way of speeding things up a bit. Also, I might star...
by Eelke Spaak
Wed Dec 17, 2008 5:30 am
Forum: Adding new mechanisms and functions to NEURON
Topic: Pre-determined spike train artificial cell
Replies: 7
Views: 6805

Re: Pre-determined spike train artificial cell

I'm very sorry, I do not have that code anymore. I changed the code back to its working version and went on developing. Changing it back to the memory leak version is not really an option. I checked my automatic backups but they are also not relevant.
by Eelke Spaak
Thu Dec 11, 2008 6:54 am
Forum: Adding new mechanisms and functions to NEURON
Topic: Pre-determined spike train artificial cell
Replies: 7
Views: 6805

Re: Pre-determined spike train artificial cell

Thanks for you reply, I thought I'd let you know of my findings with the different methods of generating spike trains. To examine whether or not it would be worthwhile (in terms of computational time) changing my (already working) implementation to the "best practice" one, I first did some...
by Eelke Spaak
Mon Dec 08, 2008 11:41 am
Forum: Adding new mechanisms and functions to NEURON
Topic: Pre-determined spike train artificial cell
Replies: 7
Views: 6805

Re: Pre-determined spike train artificial cell

Sorry to bother you all with this, I already solved it. I changed the SpikeTrain process to something even simpler: NEURON { POINT_PROCESS SpikeTrain RANGE x } PARAMETER { x } And then I vec.play()-ed the SpikeTrain.x variable and had NetCon check it for passing a threshold of 0.5. This accomplishes...
by Eelke Spaak
Mon Dec 08, 2008 8:09 am
Forum: Adding new mechanisms and functions to NEURON
Topic: Pre-determined spike train artificial cell
Replies: 7
Views: 6805

Re: Pre-determined spike train artificial cell

I just realised that I could, of course, also use the NetCon.event() method to activate my synapses (and not use an artificial cell at all), but that would require a HOC check on each simulation time step, which is probably very slow.
by Eelke Spaak
Mon Dec 08, 2008 5:59 am
Forum: Adding new mechanisms and functions to NEURON
Topic: Pre-determined spike train artificial cell
Replies: 7
Views: 6805

Pre-determined spike train artificial cell

I am building a model that I now want to adapt to include input from artificial spiking cells, rather than current input. The NetStim process seemed like a good place to start; however, I want to be able to change the spike times from HOC, to be able to later easily change the input to a variable-ra...
by Eelke Spaak
Wed Nov 12, 2008 5:20 am
Forum: NEURON hacks
Topic: Dictionary implementation in HOC
Replies: 0
Views: 15342

Dictionary implementation in HOC

Since I could not find an implementation of a dictionary (or map, or ...) in HOC, I decided to write my own. I thought it would be nice to share it, so here it is. It supports both object references and strings as keys; a feature I myself find very useful. By the way, if anyone already knows of a bu...
by Eelke Spaak
Tue Oct 28, 2008 4:35 am
Forum: Getting started
Topic: Single or multiple NetCon objects per synapse?
Replies: 3
Views: 2696

Re: Single or multiple NetCon objects per synapse?

Thank you for your very clear and helpful reply! Following your remark, I did play a bit with Neuron and Python (which, since I'm on Windows Vista (don't shoot me), was not very easy to get working with my own Python version for IDE integration). It does seem to work pretty well, but since I actuall...
by Eelke Spaak
Wed Oct 22, 2008 4:45 am
Forum: Getting started
Topic: Single or multiple NetCon objects per synapse?
Replies: 3
Views: 2696

Single or multiple NetCon objects per synapse?

I have just started coding a model in NEURON, and while I have a lot of programming experience (especially object-oriented), HOC is at times a bit confusing to me. In particular, the way declarations, initializations and references are handled is not exactly what I would expect from an OOP point of ...