nrngui vs nrniv

The basics of how to develop, test, and use models.
Post Reply
pfortier
Posts: 47
Joined: Thu Apr 20, 2006 8:02 am
Location: University of Ottawa

nrngui vs nrniv

Post by pfortier » Thu Aug 23, 2012 12:03 pm

When I run "nrngui orientkeys.hoc" everything works fine as shown below:

Code: Select all

pfortier@uric:[OrientKeys]$ nrngui orientkeys.hoc
NEURON -- Release 7.1 (359:7f113b76a94b) 2009-10-26
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2008
See http://www.neuron.yale.edu/credits.html

loading membrane mechanisms from /home/pfortier/all/keys/docs/research/write/Papers/OrientKeys/i686/.libs/libnrnmech.so
Additional mechanisms from files
 Gfluct.mod IM.mod ITGHK.mod amda.mod ampa.mod cadecay.mod gaba.mod hh2.mod nmda.mod
oc>
When I run "nrniv orientkeys.hoc -", I get the following error:

Code: Select all

pfortier@uric:[OrientKeys]$ nrniv orientkeys.hoc -
NEURON -- Release 7.1 (359:7f113b76a94b) 2009-10-26
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2008
See http://www.neuron.yale.edu/credits.html

nrniv: syntax error
 in orientkeys.hoc near line 406
                                                                                        insert hh2
                     ^
oc>
I looked at nrngui.hoc and thought I should add "{load_file("stdgui.hoc")}" to the start of my orientkeys.hoc script. However, this produced the same error.

The reason I would like to use "nrniv orientkeys.hoc -" is to not have the mainmenu appear. I run several instances of nrn and I want the menu to appear only when I need it by running nrnmainmenu().

How can I get code that runs perfectly well under nrngui to work under nrniv?

Thanks,
Pierre

ted
Site Admin
Posts: 5672
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: nrngui vs nrniv

Post by ted » Thu Aug 23, 2012 3:56 pm

nrniv doesn't load the compiled mod files. Make sure you're in the directory where the hoc source code and the i386 directory are located, and then
i386/special whateveryourhocfileiscalled.hoc

pfortier
Posts: 47
Joined: Thu Apr 20, 2006 8:02 am
Location: University of Ottawa

Re: nrngui vs nrniv

Post by pfortier » Thu Aug 23, 2012 4:23 pm

Using "i686/special orientkeys.hoc -" worked perfectly.

Thanks,
Pierre

Post Reply