{load_file("nrngui.hoc")}
objectvar save_window_, rvp_
objectvar scene_vector_[8]
objectvar ocbox_, ocbox_list_, scene_, scene_list_
{ocbox_list_ = new List() scene_list_ = new List()}
{pwman_place(0,0,0)}
//Begin NetReadyCellGUI[0]
{
load_file("netbild.hoc")
}
{ocbox_ = new NetReadyCellGUI(1)}
{ocbox_.tobj = new CellBuild(1)}
{object_push(ocbox_.tobj)}
{
version(5.7)
continuous = 0
}
{object_push(topol)}
{
first = 0
slist.remove_all()
sname = "dend"
objref tobj
}
{
tobj = new CellBuildSection("soma",0, 0, tobj, 0) slist.append(tobj)
tobj.position(0,0,15,0) tobj.lx=7.69231 tobj.ly=-28.637 tobj.i3d=0
all_init()
}
for i=0, slist.count-1 {slist.object(i).rdses()}
{object_pop()}
{
}
{object_push(subsets)}
{first = 0}
{ tobj = snlist.object(0)}
{consist()}
{object_pop()}
{
}
{object_push(geom)}
{
first = 0
tobj = new GeoSpec(2)
tobj.value = 19.5441
bild.subsets.snlist.object(0).geo.append(tobj)
tobj = new GeoSpec(3)
tobj.value = 19.5441
bild.subsets.snlist.object(0).geo.append(tobj)
set_default()
}
{object_pop()}
{
}
{object_push(memb)}
{first=0}
{
tobj = new FakeMechStan(1)
tobj.value = 0.9
tobj.set_default()
tobj = new MStanWrap(tobj, 0)
bild.subsets.snlist.object(0).ml.append(tobj)
}
{
tobj = new FakeMechStan(0)
tobj.value = 150
tobj.set_default()
tobj = new MStanWrap(tobj, 0)
bild.subsets.snlist.object(0).ml.append(tobj)
}
{
tobj = new MechanismStandard("kht")
tobj.set("ek_kht", -70, 0)
tobj.set("gkhtbar_kht", 0.0125, 0)
tobj = new MStanWrap(tobj, 1)
bild.subsets.snlist.object(0).ml.append(tobj)
}
{
tobj = new MechanismStandard("na")
tobj.set("ena_na", 55, 0)
tobj.set("gnabar_na", 0.0833333, 0)
tobj = new MStanWrap(tobj, 1)
bild.subsets.snlist.object(0).ml.append(tobj)
}
{
tobj = new MechanismStandard("leak")
tobj.set("g_leak", 0.000166667, 0)
tobj.set("erev_leak", -65, 0)
tobj = new MStanWrap(tobj, 1)
bild.subsets.snlist.object(0).ml.append(tobj)
}
{
tobj = new MechanismStandard("ih")
tobj.set("ghbar_ih", 4.16667e-05, 0)
tobj.set("eh_ih", -43, 0)
tobj = new MStanWrap(tobj, 1)
bild.subsets.snlist.object(0).ml.append(tobj)
}
{object_pop()}
{
}
{object_push(manage)}
{
first = 0
classname = "Cell"
etop=1 esub=1 egeom=1 emem=1
itop=1 isub=0 igeom=0 imem=0
bild.topol.names_off = 0
bild.topol.circles_off = 0
output_index = 0 output_x = 1
}
{object_pop()}
{
cexport()
}
{object_pop()}
{
save_window_=ocbox_.tobj.gtopol
save_window_.size(-200,200,-150,150)
scene_vector_[3] = save_window_
ocbox_.tobj.gtopol = save_window_
save_window_.save_name("ocbox_.tobj.gtopol")
}
{object_push(ocbox_)}
stgui = new SynTypeGUI(1)
{object_push(stgui)}
{
tobj = new MechanismStandard("ExpSyn")
tobj.set("tau", 0.1, 0)
tobj.set("e", 10, 0)
}
{append(tobj, "E")}
{object_pop()}
nrc = new NetReadyCell(tobj, stgui.stypelist)
nrc.name = "Ro"
tobj = nrc.cb.topol.slist.object(0)
{nrc.synlist.append(new SynTypeInstance(nrc.stype.object[0],tobj,0.5,0.5,-1))}
{g.size(-190.529,190.529,-183.252,183.252)}
{object_pop()}
{
ocbox_.map("NetReadyCellGUI[0]", 0, 1155, 425.7, 481.5)
}
objref ocbox_
//End NetReadyCellGUI[0]
//Begin NetGUI[0]
{
load_file("netbild.hoc")
}
{ocbox_ = new NetGUI(1)}
{object_push(ocbox_)}
{mapold2new = new Vector() missing = new List()}
original_type("Ro")
newnode(0, -97, -5)
newnode(0, 62, -1)
newedge(0, 1, 0, 0.03, 1)
newedge(1, 0, 0, 0.03, 1)
{create_ = 1 create1()}
{g.size(-192.525,192.525,-218.098,218.098)}
{set_alias(0)}
{object_pop()}
{
ocbox_.map("NetGUI[0]", 580, 774, 315.9, 288.9)
}
objref ocbox_
//End NetGUI[0]
//Begin PointProcessGroupManager
{
load_file("pointgrp.hoc")
}
{
ocbox_ = new PointProcessGroupManager(0)
}
{object_push(ocbox_)}
{
ms = new MechanismStandard("IClamp")
ms.set("del", 5, 0)
ms.set("dur", 100, 0)
ms.set("amp", 0.12, 0)
mnews("IClamp", ms)
select(0)
execute("Ro_Cell[0].soma ocbox_.move(0.5)")
ms = new MechanismStandard("IClamp")
ms.set("del", 10, 0)
ms.set("dur", 100, 0)
ms.set("amp", 0.12, 0)
mnews("IClamp", ms)
select(1)
execute("Ro_Cell[1].soma ocbox_.move(0)")
}
{object_pop() doNotify()}
{
ocbox_ = ocbox_.v1
ocbox_.map("PointProcessGroupManager", 8, 723, 412.2, 313.2)
}
objref ocbox_
//End PointProcessGroupManager
//Begin SpikePlot[0] for NetData[0]
{
load_file("netbild.hoc")
}
{ocbox_ = new SpikePlot(NetData[0],1)}
{object_push(ocbox_)}
mode = 1
fwindow = 100
binwidth = 0.1
build()
{g.size(0,150,0,3)}
{object_pop()}
{
ocbox_.map("SpikePlot[0] for NetData[0]", 1034, 766, 264.6, 294.3)
}
objref ocbox_
//End SpikePlot[0] for NetData[0]
{
save_window_ = new Graph(0)
save_window_.size(0,150,-80,40)
scene_vector_[5] = save_window_
{save_window_.view(0, -80, 150, 120, 750, 111, 558.9, 405.1)}
graphList[0].append(save_window_)
save_window_.save_name("graphList[0].")
save_window_.addvar("Ro_Cell[0].soma.v( 0.5 )", 1, 1, 0.8, 0.9, 2)
save_window_.addexpr("Ro_Cell[1].soma.v( 0.5 )", 2, 1, 0.8, 0.9, 2)
}
{
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 = 150
xvalue("t","t", 2 )
tstop = 150
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.2
xvalue("Real Time","realtime", 0,"", 0, 1 )
xpanel(30,19)
}
{
xpanel("Temperature", 0)
celsius = 33
xvalue("celsius","celsius", 1,"", 0, 1 )
xpanel(400,-5)
}
objectvar scene_vector_[1]
{doNotify()}