Search found 15 matches

by henrychen1986
Mon Apr 11, 2011 6:17 pm
Forum: Other questions
Topic: Random Poisson Background Noise Problem
Replies: 1
Views: 1667

Random Poisson Background Noise Problem

For a 1000 cell model I am working on, I want to generate background (spontaneous) activity/noise with Poisson distribution around a specified frequency. The problem i am encountering now is that when i generate a background activity there are too many outliers with many bins exceeding z-scores more...
by henrychen1986
Wed Sep 08, 2010 7:26 pm
Forum: Parallel NEURON
Topic: Record Simulation in Parallel Models
Replies: 5
Views: 3506

Re: Record Simulation in Parallel Models

Thanks for the reply! Actually, i am doing it in pNEURON. And the run() is implemented as pc.psolve(tstop) The full code i tested is objref pc pc = new ParallelContext() objref TRec TRec = new Vector() SaveDataDt = 0.1 proc RecTime() { TRec.record(&t,SaveDataDt) } RecTime() tstop = 10000 {pc.set...
by henrychen1986
Tue Sep 07, 2010 3:19 am
Forum: Parallel NEURON
Topic: Record Simulation in Parallel Models
Replies: 5
Views: 3506

Record Simulation in Parallel Models

Hi, In my parallel model, I am trying to record the time while i record some time-dependent variables. I can record and save those variables correctly, but the recording of time gives all zero to the recording vector. Here is my code for time recording. objref TRec TRec = new Vector() SaveDataDt = 0...
by henrychen1986
Sun Jun 13, 2010 10:28 pm
Forum: NEURON hacks
Topic: A Question about graph.size()
Replies: 1
Views: 13239

A Question about graph.size()

Hi, http://www.neuron.yale.edu/neuron/static/docs/help/neuron/general/classes/graph.html#size When I read this reference, I was not able to use this code. g.size(&dbl[0]) I got error as oc>Graph[0].size(&dbl[0]) /opt/nrn/x86_64/bin/nrniv: dbl not an array variable near line 25 Graph[0].size(...
by henrychen1986
Wed Apr 21, 2010 2:41 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Deliver a Proportion of Presynaptic Spikes to Postsynapse
Replies: 5
Views: 3338

Re: Deliver a Proportion of Presynaptic Spikes to Postsynapse

Here's a big one: NetCon threshold has no effect when attached to an artificial spiking cell that uses net_event to produce output events, as NEURON's built-in IntFire1, IntFire2, and IntFire4 do. The reason is that such artificial spiking cells perform their own test for threshold crossing in thei...
by henrychen1986
Tue Apr 20, 2010 9:34 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Deliver a Proportion of Presynaptic Spikes to Postsynapse
Replies: 5
Views: 3338

Re: Deliver a Proportion of Presynaptic Spikes to Postsynapse

Thank you so much Ted! This method works fine to me. Finally, i built a template for this feature. I share it here. Please let me know if there any mistakes. Thanks again! //"PRelease.hoc" //Proportional Release Property // // Usage: // load_file("PRelease.hoc") // ... // objref ...
by henrychen1986
Mon Apr 19, 2010 8:33 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Deliver a Proportion of Presynaptic Spikes to Postsynapse
Replies: 5
Views: 3338

Deliver a Proportion of Presynaptic Spikes to Postsynapse

Hi, Is there any build-in function in NEURON can deliver a proportion of presynaptic spikes to postsynapse? For example: When the ratio P = 50% Presynase output: ______||||||||_____ Postsynapse input: _____|_|_|_|______ When the ratio P = 25% Presynase output: ______||||||||_____ Postsynapse input: ...
by henrychen1986
Mon Mar 22, 2010 1:32 pm
Forum: Getting started
Topic: Save data file each time step
Replies: 1
Views: 1820

Save data file each time step

Hi

We have a simulation which record v into a vector then save to a file. But the saving to file process after the whole simulation. How to program to save to data file each timestep in the simulation.

Thanks!
-Henry
by henrychen1986
Thu Mar 18, 2010 8:26 pm
Forum: Getting started
Topic: .mod files in subfolder under Windows
Replies: 3
Views: 4311

Re: .mod files in subfolder under Windows

Thanks for reply, Ted! I put all .mod files in a subfolder called "mechanisms" in Ubuntu, because I have 20 .mod files. Then I use the command nrnivmodl mechanisms to compile the .mod files. It works fine in Ubuntu. But when I copy those files to Windows, I dont know how to compile the .mo...
by henrychen1986
Mon Mar 15, 2010 1:38 pm
Forum: Getting started
Topic: .mod files in subfolder under Windows
Replies: 3
Views: 4311

.mod files in subfolder under Windows

Hi,

Thanks for previous help!

I am using NEURON under Ubuntu, I always separate .mod files in a subfolder. But I cannot make it work the same in Windows for connecting .mod files in subfolder. Is there any solution for this problem?

Thanks in advance!

Best,
-Henry
by henrychen1986
Tue Mar 09, 2010 8:25 pm
Forum: Getting started
Topic: Multiple NetStim input into one NetCon
Replies: 1
Views: 1707

Multiple NetStim input into one NetCon

Hi,

Could I input multiple Netstim into one NetCon?
Or if there is any function like (boolean) AND for combining two netstim?

BTW, how to plot NetStim?

Thanks in advance!

-Henry
by henrychen1986
Sun Nov 29, 2009 8:14 pm
Forum: Other questions
Topic: Convert tone pulse into synaptic input (spikes) in NEURON
Replies: 7
Views: 3984

Re: Convert tone pulse into synaptic input (spikes) in NEURON

Thank you very much Ted!

The NetStim can work! And this post is helpful (http://www.neuron.yale.edu/phpBB/viewto ... ered#p6554)

Thanks!
by henrychen1986
Sat Nov 28, 2009 5:36 pm
Forum: Other questions
Topic: Convert tone pulse into synaptic input (spikes) in NEURON
Replies: 7
Views: 3984

Re: Convert tone pulse into synaptic input (spikes) in NEURON

So you merely want to generate a train of spikes, whose parameters (start time, ISI, number) you control? Or do you have experimental data that you want to pass through a filter whose output is a spike train in which the time of each spike is governed by some aspect of the experimental data (e.g. a...
by henrychen1986
Fri Nov 27, 2009 5:06 pm
Forum: Other questions
Topic: Convert tone pulse into synaptic input (spikes) in NEURON
Replies: 7
Views: 3984

Re: Convert tone pulse into synaptic input (spikes) in NEURON

What's a "tone pulse"? What are you trying to do: generate a stimulus in the middle of a simulation, or record results and analyze them after the end of a simulation? Thank you Ted! A tone pulse is just a series of square waves with a certain frequency, such as sound wave. Now I have a so...
by henrychen1986
Wed Nov 25, 2009 7:25 pm
Forum: Other questions
Topic: Convert tone pulse into synaptic input (spikes) in NEURON
Replies: 7
Views: 3984

Convert tone pulse into synaptic input (spikes) in NEURON

Hi! I am looking for the method to convert a serie of tone pulse into the synaptic input (spikes) in NEURON. I searched in the ModelDB and the Programmer's Reference. Then I tried to use the v.spikebin by using codes like this: spikevec=new Vector() vrec=new Vector() vrec.record(&toneA.i) //tone...