Search found 54 matches

by JimH
Wed Jun 06, 2012 4:29 am
Forum: MSWin
Topic: nrniv window
Replies: 3
Views: 8793

nrniv window

For the life of me I can't figure out how to prevent the nrniv.exe window from showing. Is it possible to run the executable as a hidden process? I'm running simulations using multiple calls to the executable and the constant popping up of the windows takes over my computer. Thanks!

Jim
by JimH
Thu Apr 05, 2012 11:43 am
Forum: Other questions
Topic: nrn_load_dll file
Replies: 2
Views: 1751

Re: nrn_load_dll file

Ah, good to know. I had never thought about it but I guess that's why a lot of the function calls I make are constantly printing out ones. Perhaps I should be paying more attention to those occasional zeros and removing some of those curly brackets around my function calls! Although on a related not...
by JimH
Wed Apr 04, 2012 3:44 pm
Forum: Other questions
Topic: nrn_load_dll file
Replies: 2
Views: 1751

nrn_load_dll file

It seems that invalid file references in nrn_load_dll don't throw an error. Is this known/desired? It seems that if the user specifies a file that doesn't exist an error should be thrown ... Thoughts?

Thanks,
Jim
by JimH
Tue Jul 08, 2008 9:59 pm
Forum: UNIX/Linux
Topic: nrniv auto exiting
Replies: 4
Views: 4275

Re: nrniv auto exiting

by JimH
Wed Oct 24, 2007 10:56 pm
Forum: Other questions
Topic: Reverse Recruitment problem, i_membrane problems?
Replies: 4
Views: 4038

I had been trying to implement some of the features of McNeal 1976, the first extracellular stimulation paper in the field. My model was occasionally suggesting inverse recruitment (larger fibers getting recruited first), although the majority of the time smaller diameter fibers had lower thresholds...
by JimH
Wed Oct 24, 2007 11:44 am
Forum: Other questions
Topic: Reverse Recruitment problem, i_membrane problems?
Replies: 4
Views: 4038

A small problem that I found, which if you read the documentation it mentions, is that for x = 0 and x = 1, the nodes have no area. I've changed my stimulation code so that when I am going through a section and for every x in that section, I have the following code: for (x) { if(x != 0 && x ...
by JimH
Tue Oct 23, 2007 11:29 pm
Forum: Other questions
Topic: Reverse Recruitment problem, i_membrane problems?
Replies: 4
Views: 4038

Reverse Recruitment problem, i_membrane problems?

Hello all, I'm trying to reproduce a common observation that a larger neuron tends to get activated at a lower current threshold, via extracellular stimulation, than a smaller neuron. Unfortunately I am working with magical neurons that the opposite seems to be the case. Doubting my results and magi...
by JimH
Mon Oct 15, 2007 10:08 pm
Forum: Getting started
Topic: Vtrap derived
Replies: 1
Views: 4883

Vtrap derived

I have playing around with enough exponential functions lately that I started to wonder where the "vtrap" equation I was using came from. The general form for this equation is: vtrap = x/(exp(x/y) - 1) however as can be easily seen if x/y is 0, or close to zero, then the denominator of the...
by JimH
Sat Oct 13, 2007 2:48 pm
Forum: MSWin
Topic: Adding subdirectory path for running mod files
Replies: 2
Views: 4292

Thanks, I just found that function.

For others reference:
I put all the files I needed in a subdirectory "modFiles", used mknrndll, and then the first file I run has the following code.

Code: Select all

nrn_load_dll("modFiles/nrnmech.dll")
by JimH
Sat Oct 13, 2007 10:54 am
Forum: MSWin
Topic: Adding subdirectory path for running mod files
Replies: 2
Views: 4292

Adding subdirectory path for running mod files

I'd like to keep my nmodl files in a separate subdirectory and add a path so that while running a hoc file it utilizes the mod files in that subdirectory. Thoughts on how I would implement this? Thanks.
by JimH
Thu Aug 30, 2007 11:54 pm
Forum: Getting started
Topic: setting a parameter in nmodl
Replies: 1
Views: 2318

setting a parameter in nmodl

I just figured this out and it wasn't so obvious for me so I though I would share. The following shows how to go about changing a mechanism's parameter in hoc code. NEURON { SUFFIX xyz :More Code } PARAMETER { myparam = 3 } in hoc code you might the have: insert xyz myparam_xyz = 4 The key point her...
by JimH
Wed Aug 29, 2007 4:13 pm
Forum: Other questions
Topic: If statement, throw an error
Replies: 5
Views: 4979

Oops, correction. if(test = 0){ print "I won't print because of the assignment" } This would normally run if test had been set to anything besides zero as an if statement evaluates true if not 0 (could be any other number). if(test = 0){ print "I won't print because the variable has b...
by JimH
Thu Aug 23, 2007 5:33 pm
Forum: Other questions
Topic: If statement, throw an error
Replies: 5
Views: 4979

If statement, throw an error

It seems that it is possible to create an assignment in an if statement. I think it would be better if a compiler error were thrown instead and if this behavior were not allowed. For example: test = 1 if(test == 0){ print "I didn't print" } if(test = 0){ print "I won't print because o...
by JimH
Sun Aug 12, 2007 4:09 pm
Forum: Getting started
Topic: Controlling Neuron From Matlab in windows
Replies: 2
Views: 10768

I added the following to the code for detecting an error. In hoc code (last line): print "No_Errors!" In Matlab: [status,result] = system('C:\nrn60\bin\nrniv.exe -nobanner runMain.hoc -c quit()'); if ~isempty(findstr('No_Errors!',result)) [do whatever here] else error(result) end In Matlab...
by JimH
Sun Aug 12, 2007 4:00 pm
Forum: Getting started
Topic: Controlling Neuron From Matlab in windows
Replies: 2
Views: 10768

Controlling Neuron From Matlab in windows

On a basic level one can control neuron in Matlab via (type code in command window): ![path]nrniv.exe -isatty where in my case I used !C:\nrn60\bin\nrniv.exe -isatty However , my goal was to modify parameters in Matlab, initialize values appropriately with parameter variation, then to run the neuron...