objectvar save_window_, rvp_
objectvar scene_vector_[5]
objectvar ocbox_, ocbox_list_, scene_, scene_list_
{ocbox_list_ = new List()  scene_list_ = new List()}
{pwman_place(33,109,1)}

//Begin I/V Clamp Electrode
{
load_file("electrod.hoc")
}
{
ocbox_=new Electrode(0)
execute("can_locate=1 sec=\"soma\" xloc=0.5 locate(0)", ocbox_)
execute("vc.dur[0]=100 vc.amp[0]=-60", ocbox_)
execute("vc.dur[1]=500 vc.amp[1]=-51", ocbox_)
execute("vc.dur[2]=100 vc.amp[2]=-60", ocbox_)
execute("stim.del=0.1 stim.dur=0.1 stim.amp=0", ocbox_)
execute("vcsteps=20", ocbox_)
execute("samp=stim.amp  store_vclamp() glyph()", ocbox_)
ocbox_ = ocbox_.v1
ocbox_.map("I/V Clamp Electrode", 341, 425, 273.6, 412.8)
}
objref ocbox_
//End I/V Clamp Electrode

{
xpanel("NEURON Main Panel", 0)
xcheckbox("Quiet",&stdrun_quiet,"")
realtime = 23
xvalue("Real Time","realtime", 0,"", 0, 1 )
celsius = 36
xvalue("celsius","celsius", 1,"", 0, 1 )
global_ra = 70
xvalue("global_Ra","global_ra", 1,"set_ra()", 1, 1 )
xbutton("RunControl","nrncontrolmenu()")
xmenu("New Graph", 0)
xbutton("Voltage axis","newPlotV()")
xbutton("Current axis","newPlotI()")
xbutton("State axis","newPlotS()")
xbutton("Shape plot","newshapeplot()")
xbutton("Vector movie","newvectorplot()")
xbutton("Phase Plane","newphaseplane()")
xbutton("Grapher","load_proc(\"makegrapher\") makegrapher(1)")
xmenu()
xmenu("Point Processes", 0)
xmenu("Managers", 0)
xbutton("Point Manager","load_template(\"PointProcessManager\") makeppm()")
xbutton("Point Group","load_template(\"PointProcessGroupManager\") makeppgm()")
xbutton("Electrode","load_proc(\"makeelectrode\") makeelectrode()")
xmenu()
xmenu("Viewers", 0)
xmenu("PointProcesses", 0)
xbutton("IClamp","makePointBrowser(\"IClamp\")")
xbutton("AlphaSynapse","makePointBrowser(\"AlphaSynapse\")")
xbutton("KSyn","makePointBrowser(\"KSyn\")")
xbutton("SEClamp","makePointBrowser(\"SEClamp\")")
xbutton("VClamp","makePointBrowser(\"VClamp\")")
xbutton("APCount","makePointBrowser(\"APCount\")")
xbutton("RClamp","makePointBrowser(\"RClamp\")")
xmenu()
xmenu()
xmenu()
xmenu("Distributed Mechanisms", 0)
xmenu("Managers", 0)
xbutton("Inserter","load_template(\"Inserter\") makeinserter()")
xbutton("Homogeneous Spec","load_proc(\"makeshowmechanism\") makeshowmechanism()")
xmenu()
xmenu("Viewers", 0)
xbutton("Shape Name","load_template(\"MenuExplore\") makeMenuExplore()")
xbutton("Name Values","nrnallsectionmenu()")
xmenu("Mechanisms (Globals)", 0)
xbutton("na_ion","nrnglobalmechmenu(\"na_ion\")")
xbutton("k_ion","nrnglobalmechmenu(\"k_ion\")")
xbutton("hh","nrnglobalmechmenu(\"hh\")")
xbutton("ca_ion","nrnglobalmechmenu(\"ca_ion\")")
xbutton("HVA_Ca","nrnglobalmechmenu(\"HVA_Ca\")")
xbutton("L_Ca","nrnglobalmechmenu(\"L_Ca\")")
xbutton("N_Ca","nrnglobalmechmenu(\"N_Ca\")")
xmenu()
xmenu()
xmenu()
xmenu("Miscellaneous", 0)
xmenu("Clipboard", 0)
xbutton("Save to File","load_proc(\"clipboard_save\") clipboard_save()")
xbutton("Retrieve from File","load_proc(\"clipboard_retrieve\") clipboard_retrieve()")
xbutton("Gather Values","load_template(\"GatherVec\") makeGatherVec()")
xbutton("Vector Play","load_template(\"VectorPlay\") makeVectorPlay()")
xbutton("Vector Wrapper","load_template(\"VecWrap\") makeVecWrap()")
xmenu()
xmenu("Family", 0)
xbutton("Family","load_template(\"Family\") makeFamily()")
xbutton("Command","load_template(\"ExecCommand\") newcommand()")
xmenu()
xbutton("Parameterized Function","load_template(\"FunctionFitter\") makefitter()")
xbutton("Run Fitter","load_template(\"RunFitter\") makerunfitter()")
xmenu("Impedance", 0)
xbutton("Frequency","load_template(\"ImpedanceRatio\") makeImpRatio()")
xbutton("Path","load_template(\"Impx\") makeImpx()")
xbutton("log(A) vs x","load_template(\"LogAvsX\") makelogax()")
xbutton("Shape","load_template(\"ImpShape\") makeImpShape()")
xmenu()
xmenu()
xpanel(37,229)
}
{
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 = 251
xvalue("t","t", 2 )
tstop = 700
xvalue("Tstop","tstop", 1,"tstop_changed()", 0, 1 )
dt = 0.025
xvalue("dt","dt", 1,"setdt()", 0, 1 )
steps_per_ms = 2
xvalue("Points plotted/ms","steps_per_ms", 1,"setdt()", 0, 1 )
xpanel(36,500)
}
{
save_window_ = new Graph(0)
save_window_.size(0,700,-140,10)
scene_vector_[3] = save_window_
{save_window_.view(0, -140, 700, 150, 642, 299, 505.92, 362.56)}
graphList[1].append(save_window_)
save_window_.save_name("graphList[1].")
save_window_.addexpr("VClamp[0].i-((soma.v(.5)+65)/1.4)", 1, 1, 0.34454, 0.989245, 2)
}
{
save_window_ = new Graph(0)
save_window_.size(0,700,-80,40)
scene_vector_[4] = save_window_
{save_window_.view(0, -80, 700, 120, 631, 36, 506.88, 226.24)}
graphList[0].append(save_window_)
save_window_.save_name("graphList[0].")
save_window_.addexpr("v(.5)", 1, 1, 0.8, 0.9, 2)
}
objectvar scene_vector_[1]
{doNotify()}