Re: Time-varying maximal conductance
Posted: Tue Feb 07, 2017 12:28 pm
Hi Ted,
You mentioned using vector class play method, and actually that is precisely what I want to do now.
I have an imported vector which has the same time-step dt as that set in my hoc code:
However, when I run this, it seems to just be setting vectv[0] as the imported file ramp_g_pas.txt. For all other sections, g_pas = 0. Namely Bcell[1].soma.g_pas all the way to Bcell[j-1].soma.g_pas are set to 0, rather than the ramp function that I am trying to set them all too.
How do I fix this?
I have tried to have a seperate file for each instance vectv, namely:
But naturally it takes ages!
Any thoughts on this would be really useful.
Kind regards,
Linford
You mentioned using vector class play method, and actually that is precisely what I want to do now.
I have an imported vector which has the same time-step dt as that set in my hoc code:
Code: Select all
chdir("C:/models/")
objref f
f = new File("ramp_g_pas.txt")
f.ropen()
objectvar vectv[j]
for i=0,j-1 {access cell[i].soma
vectv[i] = new Vector()
vectv[i].scanf(f)
vectv[i].play(&cell[i].soma.g_pas,dt)
}
How do I fix this?
I have tried to have a seperate file for each instance vectv, namely:
Code: Select all
objref f[j]
for i=0, j-1 {f[i] = new File("ramp_g_pas.txt")
f[i].ropen()
}
Any thoughts on this would be really useful.
Kind regards,
Linford