Editing    Analysis    Display    Useful Script Functions

Control    On-Line    Examples of Method    User RequestedNew

On-line
Trigger sampling when between two levels
Target position tracking
Play tones to flag frame states
Keyboard shortcut for sampling
Control sampling with the toolbar
Subtract one channel from another
Artefact rejection on line
Capture and analyse EMG signals
Trigger sampling when between two levels TrigInLevels.zip 2,291

This script and associated sequence will cause Signal to wait until a sampled waveform is between two levels on ADC port 0 (channel 1) before triggering sampling and then waits for a defined time before arming the next sweep.

The threshold levels are defined using horizontal cursors and the script uses 'peri-triggered sampling' mode and 'free run without restarts' mode for the outputs. This script and sequence could easily be modified to generate additional outputs for the sweep or respond to multiple state conditions if required.

This script requires Signal v3.10 or higher

Keywords: Triggered sampling


Target position tracking TrackPlot.zip 17,614

This script is an example of setting up a recording frame that can be used to track a given shape when sampling. The script allows the user to select a frame containing the data shape to track and then opens a new file for sampling. An XY view is created to show the incoming data, along with a target which traces the shape of the tracking data loaded previously and displays this at the end of the sweep. This new XY view could be positioned on a second monitor if required.

A suitable example file, Targets.cfs,containing target traces is included in the .Zip file

This script requires Signal v3.10 or higher

Keywords: Target tracking


Play tones to flag frame states SampleBeep.zip 1,179

This script plays a short tone from the PC sound card for each sampled frame. The tone pitch changes to flag different frame states during the recording.

This script requires Signal v2.16 or higher

Keywords: Multiple states, sound output


Keyboard shortcut for pause/start sampling KeyboardPause.zip 1,055

This script creates a toolbar with a shortcut button (spacebar) to pause and restart sampling of a data file, but could easily be modified to use any keyboard button to control the pause and restart.

This script requires Signal v2.16 or higher

Keywords: Pause sampling


Control sampling with the toolbar sampling.zip 1,047

An example of controlling sampling by means of the toolbar. The functions normally provided by the sampling control panel are replaced by toolbar buttons. This is a skeleton script designed to be used as a starting point for developing your own script.


Subtract one channel from another signal\scripts\sonline.sgs

This script sets up sampling of 3 channels but, during sampling, replaces the data in one channel by the difference between values in the other two. This is an example of modification of data as it is sampled.


Artefact rejection on line signal\scripts\artefact.sgs

This script performs online artefact rejection, it works with whatever sampling configuration is in use. The artefact rejection process is carried out by a simple function which can be changed to customise the rejection criteria.


Capture and analyse EMG signals signal\scripts\doemg.sgs

This script provides data acquisition and analysis mechanisms intended for use with EMG data. The data acquisition section uses whatever sampling configuration that is set and provides a view showing rectified versions of the sampled data. The analysis section measures the area under selected sections of data, the measurement is taken from a rectified copy of the data. The script can be used as is or modified to provide further customised data acquisition and analysis.



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 also.

These scripts are stored as WinZip files, myscript.zip, except where they are shown as signal\scripts\myscript.sgs. Those files were installed with Signal. 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.