as in the courses illustrated, using Vectorplay class, one can use arbitrary waveforms for voltage clamp. I checked the .ses file. The corresponding part contains the following codes. It reads the waveform data to build two vectors, and connects them to SEClamp. I am wondering, are there ways to achieve the same ends that in program one can switch different waveforms described in previously created vectors? or say, are there ways to assign vectors to se.dur1 and se.amp1 for waveform voltage commands or something like that?
Many thanks!
Code: Select all
//Begin VectorPlay[0]
{
load_file("vplay.hoc")
}
{
ocbox_=new VectorPlay(1)
}
{object_push(ocbox_)}
vy = new Vector(2001)
vx = new Vector(2001)
for i=0,2000 { vx.x[i]=fscan() vy.x[i]=fscan()}
0 -65
0.025 -65.1193
0.05 -65.2338
0.075 -65.344
0.1 -65.45
0.125 -65.552
0.15 -65.6504
0.175 -65.7452
0.2 -65.8367 // the rest data were omitted for clarity
{vy.plot(g, vx)}
{sname = "SEClamp6[0].amp1" have_name = 1 contin = 0 con1(1)}
{object_pop()}
{
{
save_window_=ocbox_.g
save_window_.size(0,300,0,200)
scene_vector_[4] = save_window_
ocbox_.g = save_window_
save_window_.save_name("ocbox_.g")
}
ocbox_ = ocbox_.b
ocbox_.map("VectorPlay[0]", 1099, 398, 315, 286.2)
}
objref ocbox_
//End VectorPlay[0]