functions
system(string)
system("ls")
exit
command
Does not work on the mac version.
Under mswin, executes the string under the cygwin sh.exe in $NEURONHOME/bin via the wrapper, $NEURONHOME/lib/nrnsys.sh . Normally, stdout is directed to the file tmpdos2.tmp in the working directory and this is copied to the terminal. The neuron.exe busy waits until the nrnsys.sh script creates a tmpdos1.tmp file signaling that the system command has completed. Redirection of stdout to a file can only be done with the idiom "command > filename". No other redirection is possible except by modifying nrnsys.sh .
functions
startsw()
stopsw()
Startsw()
initializes the stopwatch. Stopsw()
returns the number of
seconds since the previous startsw()
.
functions
string = neuronhome()
Note that for unix, it isn't exactly the installation path but the --prefix/share/nrn directory where --prefix is the location specified during installation. For the mswin version it is the location selected during installation and the value is derived from the location of neuron.exe in neuronhome()/bin/neuron.exe. For mac it is the folder that contains the neuron executable program.
functions
winio_show(0or1)
functions
WinExec("mswin command")
functions
type = unix_mac_pc()
functions
nrn_load_dll(dll_file_name)