I've tried using NetStim as an AP generator by connecting it to a biophysical cell through an ExpSyn but it doesn't generate AP's at all.
Attached is my code:
Code: Select all
///Using NetStim////
load_file("nrngui.hoc")
////topology////
create soma
////geometry////
diam= 30
L = 30
nseg = 1
////biophysics////
Ra = 100
cm = 1
soma insert hh
////Creating a NetStim ////
objref netstim
netstim= new NetStim(0.5)
netstim.interval = 100 //(ms)
netstim.number = 10
netstim.start = 100 //(ms)
netstim.noise = 0
// Attaching the cell to the an ExpSyn synapse//
objref syn
soma syn = new ExpSyn (0.5)
// Attaching the NetStim to the synapse//
objref netcon
netcon= new NetCon(netstim, syn)
////Recording////
objref g
g = new Graph()
g.beginline()
t=0
dt=0.025
for i= 0, 40000{
g.line(t,soma.v(0.5))
fadvance()
}
I can't understand why it's not working, any suggestions?
Thank you very much
Moran