I download the zip file for this model: https://senselab.med.yale.edu/ModelDb/S ... del=125857
I have been able to create the dll with the “mknrndll” tool, and to run the “mosinit.hoc” by loading it with the “File-->load hoc” Neuron main menu option. I have a problem when I try to select any option from the xpanel. I get the following error message:
This is the code for the mosinit.hoc:
Code: Select all
load_file("nrngui.hoc")
objref nil, tobj
strdef tstr
xpanel("Lee, J 2007 Fast Rhythmic Bursting cells... Penn McNair Research Journal")
xlabel("Choose a cell")
xradiobutton("2FRB","restart(\"2FRB\")")
xradiobutton("FRB3","restart(\"FRB3\")")
xradiobutton("FRB_12_19","restart(\"FRB_12_19\")")
xradiobutton("FRB_12_21","restart(\"FRB_12_21\")")
xpanel(5,100)
pwmcnt = PWManager[0].count // the initial gui should not be dismissed
proc restart() {local i
objref graphItem, save_window_
for i=0, n_graph_lists-1 {
graphList[i].remove_all()
}
flush_list.remove_all()
fast_flush_list.remove_all()
doNotify()
for (i= PWManager[0].count-1; i >= pwmcnt; i -= 1) {
PWManager[0].close(i)
doNotify()
}
stoprun = 0
cvode_active(1)
// dt = .025
// steps_per_ms = 40
// remove all sections
forall delete_section()
sprint(tstr, "%s.hoc", $s1)
load_file(1, tstr)
}
Thanks for your help and time.
Antonio