• UK
  • US
  • Français
  • Deutsch
  • Español (precios €)
  • Portugal
  • Polski
  • 日本人
  • 中國傳統
  • 简化中国

Spike2 scripts


Cursor control of displayed video frames
VideoShow.s2s (05/10)


This script allows you to display the current frame in a multimedia video file in relation to a cursor position in the data file. Simply drag the cursor to show the associated frame for that section of data. By default the displayed multimedia frame is relative to the right-hand edge of the data view.

This script requires Spike2 v5.21 or higher.

Rerun with sound output
RerunWithSound.s2s (05/10)


This script can be used to rerun a data file and nominate a channel to be played out from the sound card during the replay. The script generates a toolbar from which the user can open data files, set the channel to play out and run/stop the data file.

This script requires Spike2 v5.21 or higher.

Copy/Paste Show/Hide Status Between Files
GetVisible.s2s (06/08)


This pair of scripts provides a quick way of applying the Show / Hide state of channels in one view to others. Both scripts add a button to the Spike2 Script bar when first run for “one click” operation. Simply click on GetVisCh to copy the layout of the front view. Then, click on the destination view to bring it to the front and click the SetVisCh button to apply the stored Show /Hide configuration. Hold down Ctrl when pressing SetVisCh to apply, as far as possible, all the characteristics of the source (time ranges, trace colours etc.) to the destination.

See the comments in the script files for full user instructions.

This script requires Spike2 v6.06 or higher.

Paged display
AutoPage.s2s (04/24) Improved!


This script aims to facilitate inspecting data files page by page when searching for features of interest. It steps to the next (or previous) page of data automatically after a user-defined time unless you hit a 'Pause' button in order to inspect the current page in more detail. Once paused, you can annotate the data by adding TextMarks or marking 'states', i.e., time ranges marked with a coloured bar.

The script is controllable via keyboard shortcuts so that you can focus on the data without the need for mouse-clicking and dragging etc.

You can display a user guide by clicking on a button in the scripts Setup dialog.

Requirements: Spike2 v8.24 or higher.

Alternative Show/Hide Channels Dialog
ShowHide.s2s (06/08)


This script allows you to Show or Hide channels in the front view based on a dialog with a grid of checkboxes rather than the list-based method built into Spike2. The resulting dialog is especially convenient when dealing recordings from multi-electrode arrays since the grid of check boxes can be matched to the layout of the electrode array. Using this script, you can easily show or hide rows or blocks of channels. You can also define a mask so that only channels of specified types, Events and WaveMarks, for example, are available to be shown or hidden.

The script adds a button labelled (ShowHide) to the Spike2 Script bar the first time that you run it so that it is available via a single mouse-click.

A user guide is included in the comments at the head of the script file.

This script requires Spike2 v6.06 or higher.

Display multiple rerunning time, result and multimedia views
MultiRerun.s2s (07/04)


This script allows you to set up an eye-catching replay of your experimental data on a computer screen or via a video projector. This is an attention-grabbing method of presenting results in poster demonstrations, lectures or student practical classes.

Using this script, you can set up to ten time views rerunning in parallel. When each data file reaches the end it restarts automatically from the beginning. Each rerunning file can have multiple related result views, e.g. power spectra, which update to reflect the currently displayed raw data. You can also display up 4 multimedia windows linked to rerunning files.

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 in the side menu. Then you can down-load them by clicking on the filename.

Cambridge Electronic Design Limited

Registered in England: 00972132

Registered office:

  • Cambridge Electronic Design Limited,
  • Technical Centre,
  • 139 Cambridge Road,
  • Milton,
  • Cambridge CB24 6AZ

VAT: GB 214 2617 96

Producer registration number: WEE/BD0050TZ

Terms and Conditions of Sale

For our US customers, we can provide tax form W-8BEN, that identifies us as a UK company.

DUNS: 219151016
NAICS: 423490
Commodity codes
Hardware: 84716070
Software: 85235190

By email:


By post:
  • Cambridge Electronic Design Limited,
  • Technical Centre,
  • 139 Cambridge Road,
  • Milton,
  • Cambridge CB24 6AZ
By telephone:

(Int.+44) (0)1223 420186

From North America (Toll Free):

1 800 345 7794