nrniv window

nrniv window

Postby JimH » Wed Jun 06, 2012 4:29 am

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
JimH
 
Posts: 48
Joined: Tue Apr 10, 2007 3:36 pm
Location: University of Pittsburgh

Re: nrniv window

Postby ted » Wed Jun 06, 2012 10:58 am

It would be more efficient to use bulletin-board style parallelization instead. That would not only open just one NEURON terminal, but would allow you to use all of your PC's cores. Since you're using MSWin, you already have MPI (is packaged with NEURON's installer for MSWin), so getting this going should be dirt simple. You can read about running "embarrassingly parallel" simulations with NEURON in the Programmer's Reference
http://www.neuron.yale.edu/neuron/static/docs/help/neuron/neuron/classes/parcon.html
and here's an exercise from the NEURON summer course that might help you get started:
http://www.neuron.yale.edu/ftp/ted/neuron/bulletin_board_parallelization.zip
ted
Site Admin
 
Posts: 3590
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Re: nrniv window

Postby hines » Wed Jun 06, 2012 11:58 am

nrniv.exe does not, itself, pop up a terminal window. That must be a consequence of the way you are launching it. I presume you are using the cygwin version
where there is generally an rxvt window. From a command window, try executing nrniv and I believe you will see nothing because there is no cygwin compatible
stdin or stdout. So it exits immediately because stdin is at end of file. But if you launch
nrniv -c 'continue_dialog("hello")'
then it will wait for your button press before exiting. However, notice it did not start a terminal window.
A fragment of code that one could use to exhibit the problem would be helpful.
hines
Site Admin
 
Posts: 980
Joined: Wed May 18, 2005 3:32 pm

Re: nrniv window

Postby JimH » Wed Jun 06, 2012 10:47 pm

It is actually through a system call in Matlab. I've nearly finished a process to support stdin/stdout back and forth communication but I need some results ASAP and all I was getting was flashing screens as a new window would pop up and close.

I added:

start /B /WAIT and now it seems to be working exactly as desired.

Thanks for the note on the parallel computation approach, although I don't have that many simulations to run yet and I need a bit of back and forth communication for everything to work.

This is an extension of this topic from a while back, although I've changed a few things since then:
https://www.neuron.yale.edu/phpBB2/viewtopic.php?t=996
JimH
 
Posts: 48
Joined: Tue Apr 10, 2007 3:36 pm
Location: University of Pittsburgh


Return to MSWin

Who is online

Users browsing this forum: No registered users and 1 guest