Inject the pulse train

The basics of how to develop, test, and use models.
Post Reply
pass1945
Posts: 21
Joined: Mon May 21, 2012 2:44 pm

Inject the pulse train

Post 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
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Inject the pulse train

Post 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?
Post Reply