real time data output
real time data output
is there away to dump out data real time while the simulation is running? for example, in the tutorial it showed how to dump data to files from vectors and matrix and save the data into a file (after the simulation is done.) is it possible to have the data dump out while it's running how it works with the builtin plot program in NEURON. the reason i'm asking this is i want it to pipe out the data to another program that could output data via D/A. Thanks.
I believe that Gwendal LeMasson <gwendal.lemasson@bordeaux.inserm.fr> uses NEURON in this way for his dynamic clamp.
See the nrn/src/nrnoc/fadvance.c file and look at the function nrn_fixed_step(). Basically, you feed a double buffered DAC with output values, wait for a clock pulse that strobes the DAC and ADC, transfer the ADC buffers to NEURON variables, call nrn_fixed_step(), and repeat.
Sorry I don't have available, at the moment, a sample mod file that implements the above loop. It was created in the late 90's when only the best pc's were 400 MHz and now I am away from the archives for at least three more weeks. I think I recall that between clock pulses of 25us, one could compute several compartments with a half a dozen channels but I could be considerably off in my memory. At any rate you'd be much better off contacting Gwen.
See the nrn/src/nrnoc/fadvance.c file and look at the function nrn_fixed_step(). Basically, you feed a double buffered DAC with output values, wait for a clock pulse that strobes the DAC and ADC, transfer the ADC buffers to NEURON variables, call nrn_fixed_step(), and repeat.
Sorry I don't have available, at the moment, a sample mod file that implements the above loop. It was created in the late 90's when only the best pc's were 400 MHz and now I am away from the archives for at least three more weeks. I think I recall that between clock pulses of 25us, one could compute several compartments with a half a dozen channels but I could be considerably off in my memory. At any rate you'd be much better off contacting Gwen.