record data

The basics of how to develop, test, and use models.
Post Reply
reza_rzm

record data

Post by reza_rzm »

Dear Frinds,


Fron Neuron toturial i have sthc1.hoc (that create 4 (soma +2 dendrite) ).

to save some data i follow methods and codes in part E of toturial;so in the end of sthc1.hoc , i add

objref rect, recv
rect = new Vector()
recv = new Vector()
recv.record(&SThcells[0].soma.v(0.5))
rect.record(&t)
recv.printf()



when i run program i expect to see value of recv in screen but i see just

0


i think, it means my vector (recv ) is empty!!!! what's wrong???
Could you please help me to find my mistake?!

Have Nice Day
Raj
Posts: 220
Joined: Thu Jun 09, 2005 1:09 pm
Location: Groningen, The Netherlands
Contact:

Re: Record Data

Post by Raj »

I think you are printing the vector before you do the run and then it is empty.
Try entering the last line after running the simulation or if you work from a file add a run() statement before your last line.

In contrast to the vec.record(&var) statement which marks the vector as an object in which to store information during a run, the printf statement is executed immediately.
Post Reply