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

Spike2 scripts


Export

Export covers converting data to a different format; for merging or otherwise altering data files, see the Editing section.

 

Export raster data as text
RasterDump01.s2s (11/20)

RasterDump.zip

This script exports raster data from result files into a new text document. When the script is run, the user is prompted to open a result file that includes a raster type channel and select the raster channel to export.

This script requires Spike2 v4.24 or higher.

Save result files as images
SaveAsImage.s2s (04/10)

SaveAsImage.zip

This script is an example of exporting multiple result files in either bitmap or metafile format. The user selects a directory containing result files and the script then exports them one by one. You can set the window size of the first result file to be exported and this is then used to set the size of the image for all subsequent files. The image files are saved in the same directory and with the same file names as the result files.

This script requires Spike2 v5.21 or higher.

Export as text based on a trigger channel
TriggeredTextExport.s2s (04/10)

TriggeredTextExport.zip

This script will export data in sections of spreadsheet-format text based on a nominated trigger channel, with each section separated by new column headers. All visible channels are exported based on user defined settings such as output sample rate and section length.

This script requires Spike2 v5.21 or higher.

Convert Spike2 data files to WAV format
SMRTOWAV.S2S (06/09)

smrtowav.zip

This script converts waveforms in a data file to 8 bit or 16 bit WAV format. Waveform channels may then be played with many standard tools.

Process event channels to a text file
DUMPSPK 02.S2S (04/18)

dumpspk.zip

This script dumps an event or marker channel as text from a Spike2 data file. The script will dump the data as mean frequency, instantaneous frequency, rate, event times or event intervals in ms.

The script requires Spike2 v6.18 or later.

Print instantaneous frequency values to the Log
DumpInstFreq.s2s (07/10)

DumpInstFreq.zip

This script calculates the instantaneous frequency values from a nominated event, marker or WaveMark channel and writes them to the Log window. You can also display all of these data types as an instantaneous frequency plot using the Channel Draw Mode functions.

This script requires Spike2 v4.24 or higher.

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
  • ENGLAND.

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
CAGE/NCAGE: KB797
NAICS: 423490
Commodity codes
Hardware: 84716070
Software: 85235190
×

By email:

info@ced.co.uk

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

(Int.+44) (0)1223 420186

From North America (Toll Free):

1 800 345 7794

×