objectvar save_window_, rvp_
objectvar scene_vector_[3]
objectvar ocbox_, ocbox_list_, scene_, scene_list_
{ocbox_list_ = new List()  scene_list_ = new List()}
{pwman_place(0,0)}
if (1) {
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 = 0
xvalue("t","t", 2 )
tstop = 30
xvalue("Tstop","tstop", 1,"tstop_changed()", 0, 1 )
dt=.1	// orig value: dt = 0.004
xvalue("dt","dt", 1,"setdt()", 0, 1 )
steps_per_ms = 10
xvalue("Points plotted/ms","steps_per_ms", 1,"setdt()", 0, 1 )
xpanel(15,431)
}


proc move_iclamp2axon() {
	objectvar save_window_, rvp_
	objectvar scene_vector_[3]
	objectvar ocbox_, ocbox_list_, scene_, scene_list_

	axon {IClamp[0].loc(0.9)}
	{
	save_window_ = new Graph(0)
	save_window_.size(0,30,-80,40)
	scene_vector_[2] = save_window_
	{save_window_.view(0, -80, 30, 120, 487, 345, 491.294, 315.326)}
	graphList[0].append(save_window_)
	save_window_.save_name("graphList[0].")
	save_window_.addexpr("axon.v( 0.9 )", 1, 1, 0.8, 0.9, 2)
	save_window_.addexpr("axon.v( 0.2 )", 1, 1, 0.8, 0.9, 2)
	save_window_.addexpr("narrowr.v( 0.9 )", 3, 1, 0.8, 0.9, 2)
	save_window_.addexpr("narrowr.v( 0.1 )", 2, 1, 0.8, 0.9, 2)
	save_window_.addexpr("initseg.v( 0.5 )", 4, 1, 0.8, 0.9, 2)
	save_window_.addvar("soma.v( 0.5 )", 7, 1, 0.8, 0.9, 2)
	}
	{
	xpanel("IClamp[0] at axon(0.9)", 0)
	xlabel("IClamp[0] at axon(0.9)")
	clamp.del = 0
	xvalue("del","clamp.del", 1,"", 0, 1 )
	clamp.dur = 1.5
	xvalue("dur","clamp.dur", 1,"", 0, 1 )
	clamp.amp = 0.15
	xvalue("amp","clamp.amp", 1,"", 0, 1 )
	clamp.i = 0
	xvalue("i","clamp.i", 0,"", 0, 1 )
	xpanel(408,78)
	}
}
// move_iclamp2axon()

objectvar scene_vector_[1]