Page 1 of 1

Inject the pulse train

Posted: Tue Oct 09, 2012 11:33 am
by pass1945
Hi Ted,
I'm trying to inject a pulse train into my cell. I used the .mod file that you posted here: http://www.neuron.yale.edu/neuron/faq#playevents

A: Right you are. Pick up pulsedistrib.zip, and unzip it into an empty directory. This creates a subdirectory called pulsedistrib, which contains Ipulse1.mod, Ipulse2.mod, readme.txt, and test_1_and_2.hoc. Read readme.txt, compile the mod files, and then use NEURON to load test_1_and_2.hoc, which is a simple demo of these two current pulse generators. pulsedistrib also contains ipulse3.mod, ipulse3rig.ses, and test_3.hoc, which address the next question in this list.
I used pulse1.mod, and here are my code:

Code: Select all

objref stimTrain
soma stimTrain=new Ipulse1(0.5)

proc stimul(){
stimTrain.del=BASE
stimTrain.ton=PW
stimTrain.toff=TRAIN_INTVL
stimTrain.amp=amplitude
}

stimul()

But for some reason I didn't see any stimulation. Did I do anything wrong? This seems like a very straightforward coding.
Thanks Ted. I always have lots of questions~

Chen

Re: Inject the pulse train

Posted: Sat Oct 13, 2012 2:27 pm
by ted
Works fine for me. Did you compile the mod files with mknrndll (or nrnivmodl for Linux)? Did you click on the Init & Run button?