- Code: Select all
h('objref tempvec, tvec')
h('tempvec = new Vector(2)')
h('tvec = new Vector(2)')
h('tempvec.x[0] = 30')
h('tvec.x[0] = 0')
h('tempvec.x[1] = 32')
h('tvec.x[1] = 1100')
h('tempvec.play(&axon.enax_Na(0.5), tvec, 1)')
h('tempvec.play(&soma.enax_Na(0.5), tvec, 1)')
When I print the enax parameter from the mod file with printf, it is changing during the simulation
But when I replace it with:
- Code: Select all
tvec = h.Vector(2)
tvec.x[0] = 0
tvec.x[1] = 1100
tempvec = h.Vector(2)
tempvec.x[0] = 30
tempvec.x[1] = 32
tempvec.play(h.axon(0.5)._ref_enax_Na, tvec, 1, sec=h.axon)
tempvec.play(h.soma(0.5)._ref_enax_Na, tvec, 1, sec=h.soma)
It doesn't work, and the enax variable is set to its initial value during the simulation.
What am I doing wrong ?
Thx,
Werner Van Geit
(NEURON -- VERSION 7.1 (351+:db83e591f4a9+))
