Class Name:
SpikingActivityMonitor
This activity monitor collects the spikes from a neuron (or input neuron) type. The specific type from which you want to gather spikes must be indicated in the constructor for the SpikingActivityMonitor. See the SimpleExample.
Methods:
SpikingActivityMonitor::save_spikes_as_txt(string path, string prefix="");
SpikingActivityMonitor::save_spikes_as_binary(string path, string prefix="");
The above methods allow you to save the collected spike IDs and spike times to a file (either .txt or .bin as with the Synapse methods). The first argument is the path to the directory where these files will be dumped. The second parameter is a string which allows you to customise the filename that this data will be dumped to (by adding a prefix).