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

Spike2 scripts


Control

Control a Telemetry Research interface
TR Control.s2s (05/10)

TR Control.zip

This script and associated sequence is an example of interacting with a Telemetry Research interface. The script creates a toolbar which allows the user to control sampling and set the duration of recording periods and gaps.

Digital output 0 of the 1401 should be connected to the trigger input of the Telemetry Research transmitter and DAC 0 connected to the external channel select input to select a channel between 1 and 12. The signal you want to sample should then be connected to ADC 0.

This script requires Spike2 v5.17 or higher.

Control a Digitimer DS5 Stimulator
DS5Control.s2s (01/17)

DS5Control.zip

This script and associated sequence is an example of using a DAC output from the 1401 to control a Digitimer DS5 Isolated Bipolar Constant Current stimulator and update the settings during sampling.

This script requires Spike2 v6.14 or higher.

Associative learning in mice
Lick 02.S2S (09/24) New!

Lick 02.zip

This online script is intended for training a laboratory animal to respond to a stimulus by providing a reward when the desired behaviour is elicited within a specified time window. The script triggers the test stimulus at random intervals, records the behaviour and triggers reward delivery when the required criteria are met. The script also generates counts and plots vs. time of: "hits", "misses", "false positives" and "rejections" (where a rejection is a lack of response in random time windows between stimuli.

Specifically, the script is designed for studies of the type described by Paricio-Montecinos et al (2020). Here the stimulus is innocuous warming or cooling of the glabrous skin of a thirsty mouse's forepaw. The behaviour monitored is licking the spout of a water bottle and the reward is water, only delivered in response to licks during the thermal stimulus. Such studies aim to investigate perceptual thresholds and peripheral and central neural mechanisms of thermo-sensitivity.

The script might, with small modifications, also be useful for other learning or Go/No Go studies that involve different stimuli, behaviour and rewards, e.g. visual cues eliciting lever presses for a food reward.

Reference: Paricio-Montecinos et al. Sensory Coding of Warm Perception, Neuron 106, 830–841 (2020)

Requirements:
Hardware - Micro 1401 MkII or higher (plus appropriate hardware to generate the stimulus and provide the reward when triggered).

Software - Spike2 v9.19 or higher

Calibrate waveform capture
CALIB.S2S (01/17)

calib.zip

This script allows the user to calibrate the scale and offset of waveform channels in a sampling configuration. First create a sampling configuration (or load in a previous one) and then run the script. You can sample data into a temporary data file. When sampling this data, you should make the waveform that you wish to calibrate stay at two distinct known levels for a short period of time.

You can then press the "Calibrate" button. This enables you to select the two level sections of waveform data in a channel and to specify what values they SHOULD be. The script will then alter the channel scale and offset in the sampling configuration to achieve those values.

Generate paired pulses and analyse the results
PPULSE.S2S (01/17)

ppulse.zip

The PPulse script sends paired pulses out through Digital Outputs 0 and 1. The time between the pulses (the inter-stimulus time) is chosen at random from a list of possible values held in a stipulated text file.

To run this script, make sure you have the sequencer files PPulse1, PPulse2 and PPulse3 in the same directory as the PPulse script. You must also have in this directory a text file containing the ISI's to use (an example text file called ISITimes is supplied).

Finally, connect Digital Outputs 0 and 1 to Event Inputs 0 and 1 on a micro 1401 (or if you are using a standard 1401 or 1401plus, connect Digital Outputs 0 and 1 to Digital Inputs 0 and 1).

The PPulseAn script is a standard analysis script which indicates how the analysis of data collected using the PPulse script might be automated.

Extended documentation (in Word format) is given for both scripts.

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

×