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

Signal scripts


Control 200 series Magstim stimulators
Ctrl200series.sgs (05/10)


This script can be used to control older Magstim 200 models that have been fitted with the parallel port modification, using multiple states and the 1401 digital outputs. The script creates a suitable sampling configuration and allows the user to specify the Magstim output intensities and interval between outputs for each state used.

The connection between the Magstim parallel port interface and the 1401 digital outputs can be achieved with a modified data cable (contact us for details).

This script requires Signal v3.10 or higher.

Script control of waveform output


This script demonstrates how to place a waveform output configuration into an output file and how to set the values of the waveform.

It will adjust the currently loaded sampling configuration to put a high-speed waveform output section into it. It is a simple example of defining and controlling the waveform.

The code as it stands simply sets a few locations to 32767 (= 5 volts) to generate a short square pulse, but it is easily modifiable to allow you to create any desired waveform.

Quickly acquire a TMS stimulus response curve
FastMEP.sgs (10/18)


This script is for quickly (under 5 minutes) acquiring data for a stimulus response curve in a Transcranial Magnetic Stimulation procedure using a range of magnetic stimulators.

For details on setting a TMS system, please follow the directions in the video tutorial Setting up a Magstim magnetic stimulator. This will guide you through the hardware connections and what is required.

A pdf User Guide is included in the zip file.

This script requires Signal v7.01 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 Tim Bergel. We provide some scripts for Spike2 too.

These scripts are stored as WinZip files, myscript.zip, except where they are shown as signal\scripts\myscript.sgs. Those latter files were installed with Signal and signal stands for the directory in which you installed Signal. 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: 85234945

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