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