Editing    Analysis    Display    Archive Scripts    Useful Script Functions    Control

On-Line    Experiments    Examples of Method    Spectrum    Export

Archive Scripts
Add two waveforms
Copy and paste waveforms and events
Extract a waveform section
Rectify data
Horizontal raster plot
Shrink a script
Find events in a waveform channel
Add two waveforms add_wave.zip 2,214 add_wave.sit 2,877

Adds two waveform channels together between stated times. The script is a little complicated for what it does; it has a lot of error checking.

Users of Spike2 versions 5 and above can use the built-in Virtual Channels to perform channel arithmetic.


Copy and paste waveforms and events lotsx.zip 6,305 lotsx.sit 8,972

This script enables the user to copy sections of waveform, and corresponding event data from several different files and to paste them into a newly created data file. Each section copied will be appended to previously copied data, and optional gaps can be left. This file can then be saved as a normal Spike2 data file.

This script is now superseded by the Merge Files script for Spike2 versions 5 and above.


Extract a waveform section chunkrem.zip 910 chunkrem.sit 1,161

Chops off sections of data before and after a chunk that you want to isolate. It works only on waveform channels. Beware! This script makes large, irreversible changes to your data-file.

Extracting waveform sections from a channel can be done interactively using a memory buffer or by using the Copy to memory channel command.


Rectify waveform data rectify.zip 899 rectify.sit 1,126

This script almost wholly consists of a Rectify function which demonstrates how to generate rectified data in a memory channel.

Rectification can be applied as a Channel Process in Spike2 version 4 and higher, but this script remains a good example of copying and manipulating channel data using the script language.


Horizontal raster plot hraster.zip 1,556

This script uses an XY view to generate a raster plot with the raster time-base horizontal - unlike the raster display mode built into Spike2. It requires version 3 or later.


Shrink a script shrink.zip 4,534 shrink.sit 6,394

Takes a script and shrinks its size, while preserving the functionality.


Find events in a waveform channel spike\scripts\w_levels.s2s spike2:scripts:w_levels.scr

This script demonstrates how to find events from a waveform channel using cursors. Now superseded by the memory buffer facilities in version 3.



Some of these scripts have come from users rather than the CED team. If you have a script that you would like to offer to fellow users via this page, please tell Simon Gray. We provide some scripts for Signal too.

These scripts are stored as WinZip files, myscript.zip, except where they are shown as spike\scripts\myscript.s2s. Those latter files were installed with Spike2 and spike stands for the directory in which you installed Spike2. See the summaries by clicking on the description line, below. Then you can down-load them by clicking on the filename; please check the size received.