Running mknrndll from the command line
Posted: Mon Mar 18, 2013 4:35 pm
Hello Ted,
In my current application I am looking to modify .mod files automatically from Matlab, then compile them using mknrndll and run some .hoc files which require the said .mod.
Since this is to be repeated over a loop I need a way to compile .mod files from the system command line, Matlab command, or another way that doesn't require manual GUI interaction.
So far I have been able to make the GUI appear in two ways:
launching a windows cmd and running C:\nrn72\bin\nrniv.exe /cygdrive/C/nrn72/lib/hoc/mknrndll.hoc
or the equivalent from Matlab system('C:\nrn72\bin\nrniv.exe /cygdrive/C/nrn72/lib/hoc/mknrndll.hoc')
The next step would be to find a command that is equivalent to pressing the buttons on the GUI that pops up, and entering a string for the chosen directory.
When running the above command in Matlab, the command window enters the Neuron prompt interface (as it should, since it's simply running a .hoc file).
I have tried to inspect the file C:\nrn72\lib\hoc\mknrndll.hoc for useful functions, and tried to run some on the on the Neuron prompt that appears. The prompt, however, is unresponsive even to simple queries like 1+1, which I believe is from the fact that it's expecting interaction with the GUI, and simply ignores written commands.
As far as I can tell there used to be a mknrndll DOS box, in which you could cd to the directories you wanted and simply type mknrndll to run. Is my only option to uninstall neuron 7.2 and revert back to 5.0.1 and earlier, just to be able to use the mknrndll DOS box? I am afraid of the buggy repercussions such measure would lead to.
Thank you in advance for your help and best wishes,
Susana
In my current application I am looking to modify .mod files automatically from Matlab, then compile them using mknrndll and run some .hoc files which require the said .mod.
Since this is to be repeated over a loop I need a way to compile .mod files from the system command line, Matlab command, or another way that doesn't require manual GUI interaction.
So far I have been able to make the GUI appear in two ways:
launching a windows cmd and running C:\nrn72\bin\nrniv.exe /cygdrive/C/nrn72/lib/hoc/mknrndll.hoc
or the equivalent from Matlab system('C:\nrn72\bin\nrniv.exe /cygdrive/C/nrn72/lib/hoc/mknrndll.hoc')
The next step would be to find a command that is equivalent to pressing the buttons on the GUI that pops up, and entering a string for the chosen directory.
When running the above command in Matlab, the command window enters the Neuron prompt interface (as it should, since it's simply running a .hoc file).
I have tried to inspect the file C:\nrn72\lib\hoc\mknrndll.hoc for useful functions, and tried to run some on the on the Neuron prompt that appears. The prompt, however, is unresponsive even to simple queries like 1+1, which I believe is from the fact that it's expecting interaction with the GUI, and simply ignores written commands.
As far as I can tell there used to be a mknrndll DOS box, in which you could cd to the directories you wanted and simply type mknrndll to run. Is my only option to uninstall neuron 7.2 and revert back to 5.0.1 and earlier, just to be able to use the mknrndll DOS box? I am afraid of the buggy repercussions such measure would lead to.
Thank you in advance for your help and best wishes,
Susana