Git Product home page Git Product logo

openbci_verifypacketcount's Introduction

OpenBCI_VerifyPacketCount

Simple sketch that scans OpenBCI data files to check for any dropped packets The program will prompt you to select a file, then it will scan the sample counter on each line of data to check for dropped packets. After it reads the file, it will print the results in the terminal window in Processing. It will also creat a small text file in the sketch folder with the scan results. Here's an example of the output

mouse pressed
User selected /Users/biomurph/Documents/OpenBCI/Verification/Burke/SavedData\OpenBCI-RAW-Kelsey-2.csv
timing file verification
%OpenBCI Raw EEG Data
%
%Sample Rate = 250.0 Hz
%First Column = SampleIndex
%Other Columns = EEG data in microvolts with optional columns at end being unscaled Aux data
At line 6  96 packets dropped
At line 15893  1 packets dropped
read 20320 lines
nothing left in file
verify took 53 mS

The first lines show which file was selected, the lines following that begin with % are copied from the OpenBCI data file (OpenBCI uses % as prefix for comments in the data files)

Each line in the data file is a sample. Line 6 contains the very first sample, and the OpenBCI sampleCounter does not always start at 0, so line 6 will likely show some erroneous number of packets dropped. Please ignore line 6 until we fix the bug... So this shows that at sample #15893, 1 packet was dropped, and that's it out of a total of 20320 samples.

openbci_verifypacketcount's People

Contributors

biomurph avatar

Watchers

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