Search found 83 matches

by patoorio
Wed Aug 19, 2009 1:12 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: problems with cvode, at_time and something else
Replies: 13
Views: 6721

Re: problems with cvode, at_time and something else

A flag=2 event sends a flag=1 event. And a flag=1 event sends a flag=1 event. Right, but all events are sent with a proper next_ev time delay, isn't it? This is what seems not to be working when WATCH is present. Is there a way to monitor event generation, delays, and arrivals while the simulation ...
by patoorio
Wed Aug 19, 2009 9:20 am
Forum: Adding new mechanisms and functions to NEURON
Topic: problems with cvode, at_time and something else
Replies: 13
Views: 6721

Re: problems with cvode, at_time and something else

I believe the problem is that every time the voltage changes from vlast by more than 5mV you start a whole new series of flag=1 streams that never ends. And why is that? I can't see it in the code. Did I miss something in the way WATCH works? This is occurring with the fixed step method as well but...
by patoorio
Tue Aug 18, 2009 10:29 am
Forum: Adding new mechanisms and functions to NEURON
Topic: problems with cvode, at_time and something else
Replies: 13
Views: 6721

Re: problems with cvode, at_time and something else

Hi, This is my current iteration: TITLE Mock stochastic voltage-dependent sodium channel : : Written by Patricio Orio, Ago 2009 : NEURON { POINT_PROCESS stNav2 USEION na READ ena WRITE ina RANGE N, No, Po, ina, next_ev, vlast } UNITS { (mA) = (milliamp) (mV) = (millivolt) } PARAMETER { N = 100 gu = ...
by patoorio
Fri Aug 14, 2009 8:39 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: problems with cvode, at_time and something else
Replies: 13
Views: 6721

Re: problems with cvode, at_time and something else

Thanks!
I'll try to figure it out and if I succeed I'll post the code.
by patoorio
Fri Aug 14, 2009 1:20 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: problems with cvode, at_time and something else
Replies: 13
Views: 6721

Re: problems with cvode, at_time and something else

Thanks a lot for the answer. It's not a big deal to make it a point process, but it's been hard to find good documentation about NET_RECEIVE blocks and WATCH (by 'good' documentation I mean an explanation of the commands in the way it is found for hoc commands in NEURON's help files). Where can I fi...
by patoorio
Fri Aug 07, 2009 5:40 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: problems with cvode, at_time and something else
Replies: 13
Views: 6721

problems with cvode, at_time and something else

Hi, This is a topic I take to the surface from time to time. I want to simulate stochastic single channels from nmodl code instead of using the channel builder and the associated hoc code (I'm not going to discuss the reasons of my choice here). I have successfuly written the mod file for this simul...
by patoorio
Thu Jun 25, 2009 8:57 am
Forum: MSWin
Topic: cannot review shell's command history!
Replies: 7
Views: 20336

Re: cannot review shell's command history!

Now this is funny: * I installed NEURON in a 32-bit WinXP Virtual machine (within my 64-bit environment), and the things works! (i.e., previous commands appear when I press 'UP') * Back in the 64-bit WinXP, I launched the xrvt terminal and again the command history can be properly reviewed. So the p...
by patoorio
Wed Jun 24, 2009 4:02 pm
Forum: MSWin
Topic: cannot review shell's command history!
Replies: 7
Views: 20336

cannot review shell's command history!

Just like it sounds. I press the UP arrow key and I only get a beep or error sound. Sometimes I make preliminary simulations from within the command shell, and re-typing everything may get tedious. Is there some kind of rxvt shell configuration that may be wrong? (something related to keyboard layou...
by patoorio
Mon Mar 09, 2009 3:49 pm
Forum: MSWin
Topic: windows in x64 mode
Replies: 2
Views: 3949

Re: windows in x64 mode

Hi, After some months, I want to get back to this. I've discovered that there a 64 bit version of mingw: http://mingw-w64.sourceforge.net/. I've compiled it (mingw64, not neuron) under cygwin but I really don't know how to continue. I don't know much about compiling, less about cross compiling and I...
by patoorio
Thu Nov 06, 2008 8:40 am
Forum: MSWin
Topic: windows in x64 mode
Replies: 2
Views: 3949

windows in x64 mode

Hi, I'm working with Windows XP x64 edition. I've noticed that neuron runs in 32bit modein this OS, and it is no wonder because of the lack of a native 64-bit cygwin. Because of that, I also assume that I could not compile a native 64-bit version of neuron using cygwin. Is there any other option to ...
by patoorio
Fri Jul 11, 2008 6:22 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Random noise
Replies: 4
Views: 6065

Re: Random noise

Clear as water.
Thanks a lot.
by patoorio
Fri Jul 11, 2008 4:53 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Random noise
Replies: 4
Views: 6065

Re: Random noise

OK, thanks for the tip. Now it works with fixed timestep. Two more questions: 1) Suddenly I realized that the correct way to go should be something like noise = 1(mA/cm2) * normrand(0,D*sqrt(dt)) n' = (-n + noise)/tau i.e., correcting the variance by the dt. Would that make it more appropriate for a...
by patoorio
Thu Jul 10, 2008 3:44 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Random noise
Replies: 4
Views: 6065

Random noise

Hi, I'm trying to study the effect of different kinds of noise in a simple one-compartment model, and I'm having some problems: After succesfully playing with a simple white noise, now I want to model an Ornstein-Uhlenbeck process, which in the practice is a low-pass filtered white noise (isn't it?)...
by patoorio
Thu Jul 10, 2008 3:19 pm
Forum: Other questions
Topic: introduce a specific type of noise
Replies: 3
Views: 3775

Re: introduce a specific type of noise

Why don't you just do something like

Code: Select all

DERIVATIVE states { 
rates(v) 
dpz=whatever-random-function-you-want
UNITSOFF 
m' = (m_inf - m + dpz)/0.1 
UNITSON 
} 
instead of 'manually' adding the random value in a separate procedure?
by patoorio
Mon Jun 09, 2008 9:29 am
Forum: Getting started
Topic: psection-like dump of global parameters
Replies: 9
Views: 6123

Excellent!!

Thanks a lot.