/* Add a spike generator to the soma of a cell */ create spikegen /cell/soma/spike setfield /cell/soma/spike thresh 0 abs_refract 0.010 output_amp 1 /* use the soma membrane potential to drive the spike generator */ addmsg /cell/soma /cell/soma/spike INPUT Vm /* make an excitatory connection to cell2 */ addmsg /cell/soma/spike /cell2/dend/Ex_channel SPIKE setfield /cell2/dend/Ex_channel synapse[0].weight 10 synapse[0].delay 0.005