Problems executing SEClamp

The basics of how to develop, test, and use models.
Post Reply
oren
Posts: 55
Joined: Fri Mar 22, 2013 1:03 am

Problems executing SEClamp

Post by oren »

Hello,
I am trying to run the example of SEClamp in
http://www.neuron.yale.edu/neuron/stati ... mp#SEClamp

Code: Select all

// setup for three simulations
create s1, s2, s3 // will be stimulated by IClamp, SEClamp, and VClamp
forall {insert hh diam=3 L=3 }
objref c1, c2, c3, ap, apc
s1 c1 = new IClamp(.5)
s2 c2 = new SEClamp(.5)
s3 c3 = new VClamp(.5)
{c1.dur=.1 c1.amp=.3}
{c2.dur1 = 1 c2.rs=.01 }
{c3.dur[0] = 1}

// record an action potential
ap = new Vector()
ap.record(&s1.v(.5))
finitialize(-65)
while(t<1) { fadvance() }

// do the three cases while playing the recorded ap
apc = ap.c  // unfortunately can't play into two variables so clone it.
ap.play_remove()
ap.play(&c2.amp1)
apc.play(&c3.amp[0])
finitialize(-65)
while(t<.4) {
        fadvance()
        print s1.v, s2.v, s3.v, c1.i, c2.i, c3.i
}
and I get this error:

Code: Select all

C:\nrn73w64\bin64\nrniv.exe: play not enough arguments
 in test.hoc near line 22
 ap.play(&c2.amp1)
                  ^
        Vector[3].play(...)
      xopen("test.hoc")
    NEURONMainMenu[0].execute1("{xopen("test.hoc")}")
  NEURONMainMenu[0].load_file(0, "C:/Users/cr-6.IUI/Downloads/test.hoc")
and others
my neuron version is 7.3 2013-04-11
64bit

Thank You
ted
Site Admin
Posts: 5786
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Problems executing SEClamp

Post by ted »

oren wrote:

Code: Select all

C:\nrn73w64\bin64\nrniv.exe: play not enough arguments
 in test.hoc near line 22
 ap.play(&c2.amp1)
                  ^
        Vector[3].play(...)
Read the documentation of the Vector class's play method. It's in the Programmer's Reference.
Post Reply