GithubHelp home page GithubHelp logo

aresjung / crossing-detector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tne-lab/crossing-detector

0.0 1.0 0.0 40 KB

Plugin to detect when signals rise or fall across thresholds, for the Open Ephys GUI.

License: GNU General Public License v3.0

C++ 98.64% Makefile 1.36%

crossing-detector's Introduction

Crossing Detector Plugin

This plugin for the Open Ephys GUI fires a TTL event when a specified input data channel crosses a specified threshold level; the criteria for detection and the output are highly customizable. It does not modify the data channels. Each instance only processes one data channel, but multiple instances can be chained together or placed in parallel.

Settings:

Main panel

  • Basic operation: When the In data channel Rises and/or Falls across the Threshold level, an event turns on on the Out event channel.

  • Timeout controls the minimum time between two consecutive events (i.e. for this number of milliseconds after an event fires, no more crossings can be detected).

Additional settings (in visualizer window)

  • Threshold randomization (chooses a new threshold for each event, within the provided range)

  • Cross-threshold jump size limit (does not fire an event if the difference across threshold is too large in magnitude; useful for filtering out wrapped phase jumps, for example)

  • Sample voting (make detection more robust to noise by requiring a larger span of samples before or after t0 to be on the correct side)

  • Event duration (in ms)

Installation

The crossing detector has been compiled and tested on Windows and Linux, but currently not on OSX. It shouldn't be too hard to get it working though, since it's a standard plugin that requires no external libraries. Let me know if you're interested in porting it - or just go ahead and do it.

On all platforms:

  • Copy crossing-detector/Source/CrossingDetector to plugin-GUI/Source/Plugins/CrossingDetector.

On Windows (VS2013):

  • Copy crossing-detector/Builds/VisualStudio2013/CrossingDetector to plugin-GUI/Builds/VisualStudio2013/Plugins/CrossingDetector.

  • In Visual Studio, open the Plugins.sln solution and add the new project (File->Add->Existing Project... and select Builds/VisualStudio2013/Plugins/CrossingDetector/CrossingDetector.vcxproj). Then build the solution.

I hope you find this to be useful! -Ethan Blackwood (ethanbb)

crossing-detector's People

Contributors

ethanbb avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.