// init_thetastim.hoc
// Simple GUI to display ThetaStim mechanism

create soma
access soma
insert pas  // needed to better see the result of synaptic activation
soma {diam=10 L=10}
objref ts, glut, nc

soma ts = new ThetaStim(0.5)
soma glut = new AmpaNmda(0.5)
nc = new NetCon(ts, glut)
nc.weight = 1 // change from initialization of 0 to 1
xpanel("test ThetaStim")
  xlabel("Control each inner spike burst:")
  xvalue("ts.interval")
  xlabel("start (below) is relative to start of burst:")
  xvalue("ts.start")
  xvalue("ts.number")
  xvalue("ts.noise")
  xlabel(" ")
  xlabel("Timing groups of spikes:")
  xvalue("ts.outer_interval")
  xlabel("outer_start is in absolute time:")
  xvalue("ts.outer_start")
  xvalue("ts.outer_number")
  xvalue("ts.outer_noise")
  xlabel(" ")
  xlabel("NetCon weight:")
  xvalue("nc.weight")
xpanel()

load_file("run_cntrl_and_graph.ses")