Hi Spike Bush,
You are instantiating new methods in
your ConstantISI class that are not part of the original spikeGenerator
class. I ran into this issue.
*****************************************************************************************************************************************************************
/usr/local/cuda/bin/nvcc
-ccbin g++ -I/home/hirak/CARL/include -L/home/hirak/CARL/lib
-Wno-deprecated-gpu-targets src/main_spike_propagate.cpp -o
spike_propagate -lcarlsim -lcurand
src/main_spike_propagate.cpp: In function ‘int main(int, const char**)’:
src/main_spike_propagate.cpp:154:14: error: cannot declare variable ‘constISI’ to be of abstract type ‘ConstantISI’
ConstantISI constISI(imgDim.N);
^
src/main_spike_propagate.cpp:12:7: note: because the following virtual functions are pure within ‘ConstantISI’:
class ConstantISI : public SpikeGenerator {
^
In file included from /home/hirak/CARL/include/carlsim.h:62:0,
from src/main_spike_propagate.cpp:1:
/home/hirak/CARL/include/callback.h:79:14:
note: virtual int SpikeGenerator::nextSpikeTime(CARLsim*, int, int,
int, int, int)
virtual int nextSpikeTime(CARLsim* s, int grpId, int i, int currentTime, int lastScheduledSpikeTime, int endOfTimeSlice) = 0;
^
make: *** [spike_propagate] Error 1
*************************************************************************************************************************************************
To generate periodic spikes, you can simply do this.
// configure network
// etc.
// create periodic spike gen
// associate group g0 with PSG
sim.setSpikeGenerator(g0, &PSG);
sim.setupNetwork();
// etc.
So, using the same network as you (attached script) I did not get any spike in the excitatory group. Try playing with the connect parameters as well as neuron parameters.
Also, the behavior you observed might be due to use of conductance based synapses. Conductance based synapses hold presynaptic action potential for a while and decays exponentilly. So a spike arriving at 100 ms might still hold high conductance values for a later time, say 180 ms.
You should read through our docs regarding conductance based synapses.
http://uci-carl.github.io/CARLsim4/ch3_neurons_synapses_groups.html#ch3s2s2_coba