Segmentation violation realtime
Posted: Wed Oct 16, 2013 3:55 pm
I'm trying to add a mechanism consisting in a simple step function. For that I wrote:
When I compile the mod file everything runs OK, but once I start neuron I get the following error:
in stdrun.hoc near line 522
realtime = startsw() - rtstart
^
xopen("stdgui.hoc")
execute1("{xopen("stdgui.hoc")}")
load_file("stdgui.hoc")
What am I missing ?
I use NEURON 7.3 (726:af0c90e31572)
Code: Select all
NEURON {
SUFFIX step
RANGE del, dur, amp
RANGE nt
}
UNITS {
(mM) = (milli/liter)
}
PARAMETER {
del (ms)
dur (ms) <0,1e9>
amp (mM)
}
ASSIGNED {
nt (mM)
}
INITIAL {
nt = 0
}
BREAKPOINT {
if ( t < del + dur && t > del) {
nt = amp
}
else {
nt = 0
}
}
in stdrun.hoc near line 522
realtime = startsw() - rtstart
^
xopen("stdgui.hoc")
execute1("{xopen("stdgui.hoc")}")
load_file("stdgui.hoc")
What am I missing ?
I use NEURON 7.3 (726:af0c90e31572)