suppress nrniv black screen
Posted: Mon Jun 14, 2010 2:36 pm
Hi,
I'm controlling Neuron from Matlab in MSWin. I'm using Matlab to write some parameters that need to be changed in .hoc file to some .dat file. Then I open this file in Neuron using xopen command, to start doing simulation using these values, and records some variables then stores them in a file. After the simulation is finished, Matlab starts doing computation on the stored values in the file (results from Neuron). If necessary, it changes values in .dat file and opens Neuron to start simulations with new values. This process continues until proper values for certain parameters are found.
However everything works fine, but the problem is the appearance of a black command screen while doing simulation, which is a bit annoying when I'm using batch mode in Matlab. in this case it opens several instances of this black screen.
I'm using system command in Matlab to open Neuron to start doing simulation.
I'm controlling Neuron from Matlab in MSWin. I'm using Matlab to write some parameters that need to be changed in .hoc file to some .dat file. Then I open this file in Neuron using xopen command, to start doing simulation using these values, and records some variables then stores them in a file. After the simulation is finished, Matlab starts doing computation on the stored values in the file (results from Neuron). If necessary, it changes values in .dat file and opens Neuron to start simulations with new values. This process continues until proper values for certain parameters are found.
However everything works fine, but the problem is the appearance of a black command screen while doing simulation, which is a bit annoying when I'm using batch mode in Matlab. in this case it opens several instances of this black screen.
I'm using system command in Matlab to open Neuron to start doing simulation.
Code: Select all
% hoc_path is the path for "nrniv -nogui apic_model.hoc"
[foo, result] = system(hoc_path);