Search found 81 matches

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: 3404

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: 3404

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: 3404

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: 3404

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: 7988

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: 7988

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: 3124

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: 3124

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: 4854

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: 4854

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: 4854

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: 3091

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: 4243

Excellent!!

Thanks a lot.
by patoorio
Fri Jun 06, 2008 11:33 am
Forum: Getting started
Topic: psection-like dump of global parameters
Replies: 9
Views: 4243

Well, it was kind of easy. Modified the mview1.hoc file: - Added textp to one of the public statements - Inserted the following code: proc textp() {local i localobj file file = new File() file.wopen($s1) for i=0, display.top.count-1 { textout(file, display.top.object(i)) } file.close() } Then, I hav...
by patoorio
Thu Jun 05, 2008 11:49 am
Forum: Getting started
Topic: psection-like dump of global parameters
Replies: 9
Views: 4243

Thanks Ted for your answer. ModelView does exactly what I want. Well, it probably does much more than what I need -but I can handle that. Now my problem is that I want to do it programatically (i.e., write a hoc code that will generate a text file with all the info that Model View gives). I dug into...