/* tcomp19:  test of voltage clamp current recording
   from a rod with simultaneous voltage recording */

/* calibrate at inten 1e3 for 1e-3 dur to give
   8e-12 A peak response */



timinc = 1e-4;
plmax = -.01;
plmin = -.06;
endexp = 2.0;
ploti = endexp / 200;

dmaxrod=35e-11;
driser=.035;
dfallr=.995;

drkd = .5;

rodrm=5000;
conn 1 to 2 cable dia 2 length 20 rm rodrm;		/* rod anatomy */
at 1 rod (0,0); 

at 2 sphere dia 10 rm rodrm;			/* rod anatomy */
at 2 rod (0,0); 
					/* synapse from rod to horiz */

flash=2e2;
stim rod 1 inten flash start .009 dur 1.001;
stim node 1 vclamp -.06 start .008 dur 1.5;

stim rod 2 inten flash start .009 dur 1.001;


plot I[1] max 35e-12 min 10e-12;

plot V[2] max -.020 min -.050; 

plot V[2] max .04 min -.06;

run;

