{load_file("nrngui.hoc")}
objectvar save_window_, rvp_
objectvar scene_vector_[4]
objectvar ocbox_, ocbox_list_, scene_, scene_list_
{ocbox_list_ = new List()  scene_list_ = new List()}
{pwman_place(0,0,0)}

//Begin SingleCompartment
{
load_file("single.hoc")
}
ocbox_ = new SingleCompartment(0)
ocbox_.inserter = new Inserter(0)
{object_push(ocbox_.inserter)}
{
mt.select("kf") i = mt.selected()
ms[i] = new MechanismStandard("kf")
ms[i].set("gbar_kf", 3e-06, 0)
mstate[i]= 1
maction(i)
mt.select("ks") i = mt.selected()
ms[i] = new MechanismStandard("ks")
ms[i].set("gbar_ks", 2e-07, 0)
mstate[i]= 1
maction(i)
mt.select("nap") i = mt.selected()
ms[i] = new MechanismStandard("nap")
ms[i].set("gbar_nap", 3.6e-08, 0)
ms[i].set("ena_nap", 79.6, 0)
mstate[i]= 1
maction(i)
mt.select("nattxs") i = mt.selected()
ms[i] = new MechanismStandard("nattxs")
ms[i].set("gbar_nattxs", 1.8e-06, 0)
ms[i].set("ena_nattxs", 79.6, 0)
mstate[i]= 1
maction(i)
mt.select("nav1p8") i = mt.selected()
ms[i] = new MechanismStandard("nav1p8")
ms[i].set("gbar_nav1p8", 2.2e-05, 0)
ms[i].set("ena_nav1p8", 79.6, 0)
mstate[i]= 1
maction(i)
mt.select("nav1p9") i = mt.selected()
ms[i] = new MechanismStandard("nav1p9")
ms[i].set("gbar_nav1p9", 1e-05, 0)
ms[i].set("ena_nav1p9", 79.6, 0)
mstate[i]= 1
maction(i)
}
{object_pop() doNotify()}
{object_push(ocbox_)}
{inserter.v1.map()}
{endbox()}
{object_pop() doNotify()}
{
ocbox_ = ocbox_.vbox
ocbox_.map("SingleCompartment", 128, 215, 91.2, 208.32)
}
objref ocbox_
//End SingleCompartment


//Begin PointProcessGroupManager
{
load_file("pointgrp.hoc")
}
{
ocbox_ = new PointProcessGroupManager(0)
}
{object_push(ocbox_)}
{
ms = new MechanismStandard("IClamp")
ms.set("del", 0, 0)
ms.set("dur", 100, 0)
ms.set("amp", 0, 0)
mnews("IClamp", ms)
select(0)
execute("soma ocbox_.move(0.5)")
}
{object_pop() doNotify()}
{
ocbox_ = ocbox_.v1
ocbox_.map("PointProcessGroupManager", 469, 629, 556.8, 295.68)
}
objref ocbox_, volt_graph
//End PointProcessGroupManager

{
save_window_ = new Graph(0)
save_window_.size(-0.95,4.05,-65.0057,-65)
scene_vector_[3] = save_window_
{save_window_.view(-0.95, -65.0057, 5, 0.00569916, 582, 108, 300.48, 200.32)}
graphList[0].append(save_window_)
save_window_.save_name("graphList[0].")
save_window_.addexpr("v(.5)", 1, 1, 0.8, 0.9, 2)
volt_graph=save_window_ // added reference so can access later ************** TMM
}
{
xpanel("RunControl", 0)
v_init = -65
xvalue("Init","v_init", 1,"stdinit()", 1, 1 )
xbutton("Init & Run","run()")
xbutton("Stop","stoprun=1")
runStopAt = 5
xvalue("Continue til","runStopAt", 1,"{continuerun(runStopAt) stoprun=1}", 1, 1 )
runStopIn = 1
xvalue("Continue for","runStopIn", 1,"{continuerun(t + runStopIn) stoprun=1}", 1, 1 )
xbutton("Single Step","steprun()")
t = 5
xvalue("t","t", 2 )
tstop = 5
xvalue("Tstop","tstop", 1,"tstop_changed()", 0, 1 )
dt = 0.025
xvalue("dt","dt", 1,"setdt()", 0, 1 )
steps_per_ms = 40
xvalue("Points plotted/ms","steps_per_ms", 1,"setdt()", 0, 1 )
screen_update_invl = 0.05
xvalue("Scrn update invl","screen_update_invl", 1,"", 0, 1 )
realtime = 0.00999999
xvalue("Real Time","realtime", 0,"", 0, 1 )
xpanel(117,564)
}
{
xpanel("soma(0 - 1) (Parameters)", 0)
xlabel("soma(0 - 1) (Parameters)")
xlabel("nseg = 1")
soma.L = 3.1831
xvalue("L","soma.L", 1,"define_shape()", 0, 0 )
soma.diam = 150
xvalue("diam","soma.diam", 1,"", 0, 0 )
soma.cm = 1
xvalue("cm","soma.cm", 1,"", 0, 0 )
soma.gbar_nav1p9 = 1e-05
xvalue("gbar_nav1p9","soma.gbar_nav1p9", 1,"", 0, 0 )
soma.ena_nav1p9 = 79.6
xvalue("ena_nav1p9","soma.ena_nav1p9", 1,"", 0, 0 )
soma.gbar_nav1p8 = 2.2e-05
xvalue("gbar_nav1p8","soma.gbar_nav1p8", 1,"", 0, 0 )
soma.ena_nav1p8 = 79.6
xvalue("ena_nav1p8","soma.ena_nav1p8", 1,"", 0, 0 )
soma.gbar_nattxs = 1.8e-06
xvalue("gbar_nattxs","soma.gbar_nattxs", 1,"", 0, 0 )
soma.ena_nattxs = 79.6
xvalue("ena_nattxs","soma.ena_nattxs", 1,"", 0, 0 )
soma.gbar_nap = 3.6e-08
xvalue("gbar_nap","soma.gbar_nap", 1,"", 0, 0 )
soma.ena_nap = 79.6
xvalue("ena_nap","soma.ena_nap", 1,"", 0, 0 )
soma.gbar_ks = 2e-07
xvalue("gbar_ks","soma.gbar_ks", 1,"", 0, 0 )
soma.gbar_kf = 3e-06
xvalue("gbar_kf","soma.gbar_kf", 1,"", 0, 0 )
xpanel(900,121)
}
objectvar scene_vector_[1]
{doNotify()}