Code: Select all
system(fullfile(cd,'myFile.hoc'))
(OS: Windows10)
Code: Select all
system(fullfile(cd,'myFile.hoc'))
Code: Select all
system(fullfile(cd,'myFile.hoc'))
Code: Select all
load_file("nrngui.hoc")
Code: Select all
// load_file("nrngui.hoc")
load_file("stdgui.hoc")
Code: Select all
system('neuron -nogui myFile.hoc');
Must have something to do with the fact that you're using a Matlab "system call" to launch NEURON. What, I don't know. From the bash shell, nrngui works, as it does under Linux and OS X. As someone who doesn't use proprietary software and has no control over what developers of such software do, I tend to latch onto solutions that work across platforms, and must leave discovery of platform-specific methods to others.hpay wrote:-nogui did the trick, but I need to call neuron, not nrngui for some reason
The only concern is whether NEURON will know where to look for the nrnmech.dll file which contains the compiled mechanisms that your code requires. Inability to find that file would make NEURON stop and issue an error message. If that isn't happening, you're OK.Is there any difference in "neuron.exe" v. "nrngui.exe" /does it matter?
Code: Select all
C:\Users\hpay4_000>nrngui
'nrngui' is not recognized as an internal or external command,
operable program or batch file.